Skip to content

Commit ba5090c

Browse files
committed
fixed bug in v_update_sys_queue when run under cron
1 parent f2d10e2 commit ba5090c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

bin/v_update_sys_queue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ source $VESTA/conf/vars.conf
2424
source $V_CONF/vesta.conf
2525
source $V_FUNC/shared.func
2626

27+
# Export PATH for cron
28+
PATH=$PATH:$V_BIN
29+
2730
# Defining pipe functions
2831
restart_pipe() {
2932
for service in $(cat $V_QUEUE/restart.pipe |awk '!x[$0]++'); do
30-
$V_BIN/v_restart_$service
33+
v_restart_$service
3134
done
3235
echo > $V_QUEUE/restart.pipe
3336
}
@@ -47,7 +50,7 @@ traff_pipe() {
4750
backup_pipe() {
4851
for user in $(cat $V_QUEUE/backup.pipe |awk '!x[$0]++' ); do
4952
sed -i "/^$user$/d" $V_QUEUE/backup.pipe
50-
bash $V_BIN/v_backup_user $user
53+
v_backup_user $user
5154
# Send notification to user
5255
done
5356
}

0 commit comments

Comments
 (0)