Browse Source

Merge pull request #2942 from jaapmarcus/fix/no-need-restart-flag

No need for restart flag it only updates dns.conf and /dns/domain.conf
Raphael 3 years ago
parent
commit
339450eaea
3 changed files with 4 additions and 19 deletions
  1. 2 7
      bin/v-insert-dns-domain
  2. 1 6
      bin/v-insert-dns-record
  3. 1 6
      bin/v-insert-dns-records

+ 2 - 7
bin/v-insert-dns-domain

@@ -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"
 

+ 1 - 6
bin/v-insert-dns-record

@@ -1,6 +1,6 @@
 #!/bin/bash
 # info: insert dns record
-# options: USER DOMAIN DATA [RESTART]
+# options: USER DOMAIN DATA
 #
 # This function inserts raw dns record to the domain conf
 
@@ -12,7 +12,6 @@
 user=$1
 domain=$2
 data=$3
-restart=$4
 
 # Includes
 # shellcheck source=/etc/hestiacp/hestia.conf
@@ -48,10 +47,6 @@ echo "$data" >> $USER_DATA/dns/$domain.conf
 #                       Hestia                             #
 #----------------------------------------------------------#
 
-# Restarting named
-$BIN/v-restart-dns "$restart"
-check_result $? "Bind restart failed" >/dev/null
-
 # Logging
 log_event "$OK" "$ARGUMENTS"
 

+ 1 - 6
bin/v-insert-dns-records

@@ -1,6 +1,6 @@
 #!/bin/bash
 # info: inserts dns records
-# options: USER DOMAIN DATA_FILE [RESTART]
+# options: USER DOMAIN DATA_FILE
 #
 # This function copy dns record to the domain conf
 
@@ -12,7 +12,6 @@
 user=$1
 domain=$2
 data_file=$3
-restart=$4
 
 # Includes
 # shellcheck source=/etc/hestiacp/hestia.conf
@@ -50,10 +49,6 @@ fi
 #                       Hestia                             #
 #----------------------------------------------------------#
 
-# Restarting named
-$BIN/v-restart-dns "$restart"
-check_result $? "Bind restart failed" >/dev/null
-
 # Logging
 log_event "$OK" "$ARGUMENTS"