]> oss.titaniummirror.com Git - ovzbpc.git/blobdiff - bpcbackup
Running under at, root does not get /sbin or /usr/sbin in the path. Add it in
[ovzbpc.git] / bpcbackup
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