|
|
@@ -1,7 +1,6 @@
|
|
|
#!/bin/bash
|
|
|
# info: insert dns domain
|
|
|
-# options: USER DATA [SRC] [FLUSH] [RESTART]
|
|
|
-#
|
|
|
+# options: USER DATA [SRC] [FLUSH] #
|
|
|
# This function inserts raw record to the dns.conf
|
|
|
|
|
|
#----------------------------------------------------------#
|
|
|
@@ -13,7 +12,6 @@ user=$1
|
|
|
data=$2
|
|
|
src=$3
|
|
|
flush=$4
|
|
|
-restart=$5
|
|
|
|
|
|
# Includes
|
|
|
# shellcheck source=/etc/hestiacp/hestia.conf
|
|
|
@@ -22,6 +20,7 @@ source /etc/hestiacp/hestia.conf
|
|
|
source $HESTIA/func/main.sh
|
|
|
# shellcheck source=/usr/local/hestia/func/domain.sh
|
|
|
source $HESTIA/func/domain.sh
|
|
|
+
|
|
|
# load config file
|
|
|
source_conf "$HESTIA/conf/hestia.conf"
|
|
|
|
|
|
@@ -83,10 +82,6 @@ chmod 660 $USER_DATA/dns.conf
|
|
|
# Hestia #
|
|
|
#----------------------------------------------------------#
|
|
|
|
|
|
-# Restarting named
|
|
|
-$BIN/v-restart-dns "$restart"
|
|
|
-check_result $? "Bind restart failed" >/dev/null
|
|
|
-
|
|
|
# Logging
|
|
|
log_event "$OK" "$ARGUMENTS"
|
|
|
|