diff --git a/bin/v_update_sys_queue b/bin/v_update_sys_queue index 7d451898..ab2f4e6c 100755 --- a/bin/v_update_sys_queue +++ b/bin/v_update_sys_queue @@ -24,10 +24,13 @@ source $VESTA/conf/vars.conf source $V_CONF/vesta.conf source $V_FUNC/shared.func +# Export PATH for cron +PATH=$PATH:$V_BIN + # Defining pipe functions restart_pipe() { for service in $(cat $V_QUEUE/restart.pipe |awk '!x[$0]++'); do - $V_BIN/v_restart_$service + v_restart_$service done echo > $V_QUEUE/restart.pipe } @@ -47,7 +50,7 @@ traff_pipe() { backup_pipe() { for user in $(cat $V_QUEUE/backup.pipe |awk '!x[$0]++' ); do sed -i "/^$user$/d" $V_QUEUE/backup.pipe - bash $V_BIN/v_backup_user $user + v_backup_user $user # Send notification to user done }