From 07acea4fc76e8cde4ec6a1746f668af09058df74 Mon Sep 17 00:00:00 2001 From: smckown Date: Fri, 18 Apr 2008 14:46:22 +0000 Subject: [PATCH] Add /usr/local to the scripts' PATHs. Move cron job to 4am. --- bpcbackup | 2 +- bpcbackup.crontab | 4 ++-- bpcdump | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bpcbackup b/bpcbackup index f22e780..895ba8f 100755 --- a/bpcbackup +++ b/bpcbackup @@ -8,7 +8,7 @@ # on the HNs. Only the HN hosting the BPC VE will do anything. VEID=1158 -export PATH=/sbin:/usr/sbin:$PATH +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 diff --git a/bpcbackup.crontab b/bpcbackup.crontab index 2f4e0a7..ffdca59 100644 --- a/bpcbackup.crontab +++ b/bpcbackup.crontab @@ -2,5 +2,5 @@ # Install to /etc/cron.d/bpcdump # File ownership and permissions root:root, 644 -# Run the bpcbackup program Tue morning at 1am and again Fri morning at 1am -0 1 * * 2,5 /usr/local/bin/bpcbackup +# Run the bpcbackup program Tue and Fri mornings at 4am +0 4 * * 2,5 /usr/local/bin/bpcbackup diff --git a/bpcdump b/bpcdump index 394e78d..ac68f0e 100755 --- a/bpcdump +++ b/bpcdump @@ -18,7 +18,7 @@ VEMNT=/var/lib/vz/private/$VEID EXTFS=/media/esata unset WRITEPAR INFO=/dev/null -export PATH=/sbin:/usr/sbin:$PATH +export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:$PATH # FUNCTIONS -- 2.39.2