|
@@ -3,20 +3,20 @@
|
|
|
# dns system restart
|
|
# dns system restart
|
|
|
|
|
|
|
|
# Importing variables
|
|
# Importing variables
|
|
|
|
|
+source /etc/profile.d/vesta.sh
|
|
|
|
|
+source $VESTA/conf/vesta.conf
|
|
|
source $VESTA/conf/vars.conf
|
|
source $VESTA/conf/vars.conf
|
|
|
|
|
|
|
|
bind() {
|
|
bind() {
|
|
|
- /etc/init.d/named 'reload' >/dev/null 2>&1
|
|
|
|
|
|
|
+ /etc/init.d/named reload >/dev/null 2>&1
|
|
|
if [ $? -ne 0 ]; then
|
|
if [ $? -ne 0 ]; then
|
|
|
#$V_FUNC/report_issue 'sys' 'cron'
|
|
#$V_FUNC/report_issue 'sys' 'cron'
|
|
|
echo "$E_RESTART_FAILED $V_EVENT"
|
|
echo "$E_RESTART_FAILED $V_EVENT"
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-# Parsing config / or just source config
|
|
|
|
|
-dns_system=$(grep 'DNS_SYSTEM=' $V_CONF/vesta.conf | cut -f 2 -d \' )
|
|
|
|
|
|
|
|
|
|
-if [ "$dns_system" = 'bind' ]; then
|
|
|
|
|
|
|
+if [ "$DNS_SYSTEM" = 'bind' ]; then
|
|
|
bind
|
|
bind
|
|
|
fi
|
|
fi
|
|
|
|
|
|