mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
added sys-queue handler
This commit is contained in:
parent
7ebd96d92d
commit
22ab6d500c
4 changed files with 32 additions and 11 deletions
|
@ -58,12 +58,20 @@ else
|
|||
fi
|
||||
|
||||
# Sync current zones
|
||||
$BIN/v-sync-dns-cluster
|
||||
$BIN/v-sync-dns-cluster $host
|
||||
return_code=$?
|
||||
if [ "$return_code" -ne 0 ]; then
|
||||
exit $return_code
|
||||
fi
|
||||
|
||||
# Add cron job
|
||||
cmd="sudo /usr/local/vesta/bin/v-update-sys-queue dns-cluster"
|
||||
check_cron=$(grep "$cmd" $VESTA/data/users/admin/cron.conf 2> /dev/null)
|
||||
if [ -z "$check_cron" ] && [ ! -z "$CRON_SYSTEM" ]; then
|
||||
$BIN/v-add-cron-job admin '*/5' '*' '*' '*' '*' "$cmd"
|
||||
fi
|
||||
|
||||
|
||||
#----------------------------------------------------------#
|
||||
# Vesta #
|
||||
#----------------------------------------------------------#
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue