@@ -24,9 +24,9 @@ dns_user=${6-dns-cluster}
2424DNS_USER=$dns_user
2525
2626# Includes
27- source $VESTA /func/main.sh
28- source $VESTA /func/remote.sh
29- source $VESTA /conf/vesta .conf
27+ source $HESTIA /func/main.sh
28+ source $HESTIA /func/remote.sh
29+ source $HESTIA /conf/hestia .conf
3030
3131
3232# ----------------------------------------------------------#
@@ -57,14 +57,14 @@ str="$str DNS_USER='$dns_user' TYPE='$type' SUSPENDED='no'"
5757str=" $str TIME='$time ' DATE='$date '"
5858
5959# Adding host to dns-cluster.conf
60- echo " $str " >> $VESTA /conf/dns-cluster.conf
61- chmod 660 $VESTA /conf/dns-cluster.conf
60+ echo " $str " >> $HESTIA /conf/dns-cluster.conf
61+ chmod 660 $HESTIA /conf/dns-cluster.conf
6262
6363# Enabling DNS_CLUSTER
64- if [ -z " $( grep DNS_CLUSTER $VESTA /conf/vesta .conf) " ]; then
65- sed -i " s/^STATS_/DNS_CLUSTER='yes'\nSTATS_/g" $VESTA /conf/vesta .conf
64+ if [ -z " $( grep DNS_CLUSTER $HESTIA /conf/hestia .conf) " ]; then
65+ sed -i " s/^STATS_/DNS_CLUSTER='yes'\nSTATS_/g" $HESTIA /conf/hestia .conf
6666else
67- sed -i " s/DNS_CLUSTER=.*/DNS_CLUSTER='yes'/g" $VESTA /conf/vesta .conf
67+ sed -i " s/DNS_CLUSTER=.*/DNS_CLUSTER='yes'/g" $HESTIA /conf/hestia .conf
6868fi
6969
7070# Enabling remote dns-cluster queue
@@ -77,12 +77,12 @@ check_result $? "$HOST sync failed" $E_CONNECT
7777
7878
7979# ----------------------------------------------------------#
80- # Vesta #
80+ # Hestia #
8181# ----------------------------------------------------------#
8282
8383# Adding local dns-cluster cron job
84- cmd=" sudo /usr/local/vesta /bin/v-update-sys-queue dns-cluster"
85- check_cron=$( grep " $cmd " $VESTA /data/users/admin/cron.conf 2> /dev/null)
84+ cmd=" sudo $HESTIA /bin/v-update-sys-queue dns-cluster"
85+ check_cron=$( grep " $cmd " $HESTIA /data/users/admin/cron.conf 2> /dev/null)
8686if [ -z " $check_cron " ] && [ ! -z " $CRON_SYSTEM " ]; then
8787 $BIN /v-add-cron-job admin ' */5' ' *' ' *' ' *' ' *' " $cmd "
8888fi
0 commit comments