mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 21:34:11 -07:00
fixed bug in v_update_sys_queue when run under cron
This commit is contained in:
parent
f2d10e286b
commit
ba5090c717
1 changed files with 5 additions and 2 deletions
|
@ -24,10 +24,13 @@ source $VESTA/conf/vars.conf
|
||||||
source $V_CONF/vesta.conf
|
source $V_CONF/vesta.conf
|
||||||
source $V_FUNC/shared.func
|
source $V_FUNC/shared.func
|
||||||
|
|
||||||
|
# Export PATH for cron
|
||||||
|
PATH=$PATH:$V_BIN
|
||||||
|
|
||||||
# Defining pipe functions
|
# Defining pipe functions
|
||||||
restart_pipe() {
|
restart_pipe() {
|
||||||
for service in $(cat $V_QUEUE/restart.pipe |awk '!x[$0]++'); do
|
for service in $(cat $V_QUEUE/restart.pipe |awk '!x[$0]++'); do
|
||||||
$V_BIN/v_restart_$service
|
v_restart_$service
|
||||||
done
|
done
|
||||||
echo > $V_QUEUE/restart.pipe
|
echo > $V_QUEUE/restart.pipe
|
||||||
}
|
}
|
||||||
|
@ -47,7 +50,7 @@ traff_pipe() {
|
||||||
backup_pipe() {
|
backup_pipe() {
|
||||||
for user in $(cat $V_QUEUE/backup.pipe |awk '!x[$0]++' ); do
|
for user in $(cat $V_QUEUE/backup.pipe |awk '!x[$0]++' ); do
|
||||||
sed -i "/^$user$/d" $V_QUEUE/backup.pipe
|
sed -i "/^$user$/d" $V_QUEUE/backup.pipe
|
||||||
bash $V_BIN/v_backup_user $user
|
v_backup_user $user
|
||||||
# Send notification to user
|
# Send notification to user
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue