mirror of
https://git.yoctoproject.org/poky
synced 2026-04-26 09:32:14 +02:00
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:
committed by
Richard Purdie
parent
48ee7e9b3a
commit
05051d864d
@@ -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
|
||||
}
|
||||
|
||||
@@ -23,4 +23,7 @@ do_install_append () {
|
||||
break
|
||||
fi
|
||||
done
|
||||
|
||||
chmod 4111 $D/usr/bin/sudo
|
||||
chmod 0440 $D/etc/sudoers
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user