[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH] same PATH as root



Usually doesn't has an user /usr/sbin and /sbin in his $PATH.
However the programms chroot and multistrap are in /usr/sbin
During preinst is insserv called, which is in /sbin
---
 polystrap.sh |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/polystrap.sh b/polystrap.sh
index 610d49c..212438b 100755
--- a/polystrap.sh
+++ b/polystrap.sh
@@ -32,6 +32,8 @@ usage() {
 
 export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C
 
+export PATH=$PATH:/usr/sbin:/sbin
+
 if [ "$FAKEROOTKEY" = "" ]; then
         echo "re-executing script inside fakeroot"
         fakeroot "$0" "$@";
-- 
1.7.5.4


Reply to: