- add /sbin and /usr/sbin to our PATH in case we are running in an sudo
authorMark Huang <mlhuang@cs.princeton.edu>
Sat, 18 Sep 2004 20:22:35 +0000 (20:22 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Sat, 18 Sep 2004 20:22:35 +0000 (20:22 +0000)
  environment

vserver-reference.spec

index ea0c859..6988e7d 100644 (file)
@@ -40,6 +40,9 @@ fi
 %build
 
 %install
+# Running as root
+export PATH="$PATH:/sbin:/usr/sbin"
+
 # Clean up
 if grep -q %{installroot}/proc /proc/mounts ; then
     umount %{installroot}/proc
@@ -131,6 +134,9 @@ if grep -q %{installroot}/dev/pts /proc/mounts ; then
 fi
 
 %clean
+# Running as root
+export PATH="$PATH:/sbin:/usr/sbin"
+
 # Clean up
 if grep -q %{installroot}/proc /proc/mounts ; then
     umount %{installroot}/proc