sudo: Avoid post install scripts

The post install script was removed, and the install_append updated
to ensure the permissions are set correctly.

(From OE-Core rev: 463e44ae159da2e03369f9ac14843b479de2e43d)

(From OE-Core rev: 52dac3a309f3f1d6a4ee7269b16ca381fd0cdd38)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle 2011-11-09 17:04:08 -06:00 committed by Richard Purdie
parent 48ee7e9b3a
commit 05051d864d
2 changed files with 3 additions and 8 deletions

View File

@ -29,11 +29,3 @@ do_install_prepend (){
mkdir -p ${D}/${localstatedir}/lib
}
pkg_postinst_${PN} () {
if [ "x$D" != "x" ]; then
exit 1
fi
chmod 4111 /usr/bin/sudo
chmod 0440 /etc/sudoers
}

View File

@ -23,4 +23,7 @@ do_install_append () {
break
fi
done
chmod 4111 $D/usr/bin/sudo
chmod 0440 $D/etc/sudoers
}