]> oss.titaniummirror.com Git - ovzbpc.git/commitdiff
Running under at, root does not get /sbin or /usr/sbin in the path. Add it in
authorsmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Fri, 18 Apr 2008 14:42:05 +0000 (14:42 +0000)
committersmckown <smckown@986fd584-583e-0410-b54d-b9fe63dff8e5>
Fri, 18 Apr 2008 14:42:05 +0000 (14:42 +0000)
the script.

bpcbackup
bpcdump

index d70d2285845bae52a5c76c3031f8be81b8d4b11a..f22e7802b6ee587a07d9dada2ead25dfcfb06a75 100755 (executable)
--- a/bpcbackup
+++ b/bpcbackup
@@ -8,6 +8,7 @@
 # on the HNs.  Only the HN hosting the BPC VE will do anything.
 
 VEID=1158
+export PATH=/sbin:/usr/sbin:$PATH
 
 # Complain if this script is running on a server not configured with OpenVZ
 if [ ! -x /usr/sbin/vzctl ]; then
@@ -27,9 +28,9 @@ fi
 # will error.  This is correct, since we cannot auto-mount esata, since it
 # has to be physically connected first, and may require authentication on mount
 # if the volume is encrypted.
-bpcdump
+/usr/local/bin/bpcdump
 ret=$?
-esata umount
+/usr/local/bin/esata umount
 ret2=$?
 [ "$ret" != "0" ] && exit $ret
 [ "$ret2" != "0" ] && exit $ret2
diff --git a/bpcdump b/bpcdump
index 6c14bbdae836acced6c5782ab81e649205fc3866..394e78d4b837584fa489d84bd7b6af5b9388a417 100755 (executable)
--- a/bpcdump
+++ b/bpcdump
@@ -18,6 +18,7 @@ VEMNT=/var/lib/vz/private/$VEID
 EXTFS=/media/esata
 unset WRITEPAR
 INFO=/dev/null
+export PATH=/sbin:/usr/sbin:$PATH
 
 # FUNCTIONS