mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
added sys-queue handler
This commit is contained in:
parent
7ebd96d92d
commit
22ab6d500c
4 changed files with 32 additions and 11 deletions
|
@ -37,11 +37,19 @@ $BIN/v-delete-remote-dns-domains $host >>/dev/null 2>&1
|
|||
# Deleting server
|
||||
sed -i "/HOST='$host' /d" $VESTA/conf/dns-cluster.conf
|
||||
|
||||
# Disabling DNS_CLUSTER
|
||||
# Delete DNS_CLUSTER key
|
||||
check_cluster=$(grep HOST $VESTA/conf/dns-cluster.conf |wc -l)
|
||||
if [ "$check_cluster" -eq '0' ]; then
|
||||
rm -f $VESTA/conf/dns-cluster.conf
|
||||
sed -i "/DNS_CLUSTER=/d" $VESTA/conf/vesta.conf
|
||||
|
||||
# Delete 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" ]; then
|
||||
eval $check_cron
|
||||
$BIN/v-delete-cron-job admin "$JOB"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue