]> oss.titaniummirror.com Git - ovzbpc.git/blobdiff - bpcbackup
Change README file name
[ovzbpc.git] / bpcbackup
index ad4db0a8374f8c91a1dcea702e123ec156c81f32..895ba8f7e93da66aa4f13f90055eeadfe8903301 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=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:$PATH
 
 # Complain if this script is running on a server not configured with OpenVZ
 if [ ! -x /usr/sbin/vzctl ]; then
@@ -27,5 +28,10 @@ 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
-esata umount
+/usr/local/bin/bpcdump
+ret=$?
+/usr/local/bin/esata umount
+ret2=$?
+[ "$ret" != "0" ] && exit $ret
+[ "$ret2" != "0" ] && exit $ret2
+exit 0