mirror of
https://git.yoctoproject.org/poky
synced 2026-09-12 15:49:36 +02:00
bash: fix postinst to not touch host system
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4120 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -20,7 +20,7 @@ do_configure () {
|
||||
}
|
||||
|
||||
pkg_postinst () {
|
||||
touch ${sysconfdir}/shells
|
||||
grep -q "bin/bash" ${sysconfdir}/shells || echo /bin/bash >> ${sysconfdir}/shells
|
||||
grep -q "bin/sh" ${sysconfdir}/shells || echo /bin/sh >> ${sysconfdir}/shells
|
||||
touch $D${sysconfdir}/shells
|
||||
grep -q "bin/bash" $D${sysconfdir}/shells || echo /bin/bash >> $D${sysconfdir}/shells
|
||||
grep -q "bin/sh" $D${sysconfdir}/shells || echo /bin/sh >> $D${sysconfdir}/shells
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user