Skip to content

Commit 339450e

Browse files
authored
Merge pull request hestiacp#2942 from jaapmarcus/fix/no-need-restart-flag
No need for restart flag it only updates dns.conf and /dns/domain.conf
2 parents 558b69f + b2b94b0 commit 339450e

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

bin/v-insert-dns-domain

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/bin/bash
22
# info: insert dns domain
3-
# options: USER DATA [SRC] [FLUSH] [RESTART]
4-
#
3+
# options: USER DATA [SRC] [FLUSH] #
54
# This function inserts raw record to the dns.conf
65

76
#----------------------------------------------------------#
@@ -13,7 +12,6 @@ user=$1
1312
data=$2
1413
src=$3
1514
flush=$4
16-
restart=$5
1715

1816
# Includes
1917
# shellcheck source=/etc/hestiacp/hestia.conf
@@ -22,6 +20,7 @@ source /etc/hestiacp/hestia.conf
2220
source $HESTIA/func/main.sh
2321
# shellcheck source=/usr/local/hestia/func/domain.sh
2422
source $HESTIA/func/domain.sh
23+
2524
# load config file
2625
source_conf "$HESTIA/conf/hestia.conf"
2726

@@ -83,10 +82,6 @@ chmod 660 $USER_DATA/dns.conf
8382
# Hestia #
8483
#----------------------------------------------------------#
8584

86-
# Restarting named
87-
$BIN/v-restart-dns "$restart"
88-
check_result $? "Bind restart failed" >/dev/null
89-
9085
# Logging
9186
log_event "$OK" "$ARGUMENTS"
9287

bin/v-insert-dns-record

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: insert dns record
3-
# options: USER DOMAIN DATA [RESTART]
3+
# options: USER DOMAIN DATA
44
#
55
# This function inserts raw dns record to the domain conf
66

@@ -12,7 +12,6 @@
1212
user=$1
1313
domain=$2
1414
data=$3
15-
restart=$4
1615

1716
# Includes
1817
# shellcheck source=/etc/hestiacp/hestia.conf
@@ -48,10 +47,6 @@ echo "$data" >> $USER_DATA/dns/$domain.conf
4847
# Hestia #
4948
#----------------------------------------------------------#
5049

51-
# Restarting named
52-
$BIN/v-restart-dns "$restart"
53-
check_result $? "Bind restart failed" >/dev/null
54-
5550
# Logging
5651
log_event "$OK" "$ARGUMENTS"
5752

bin/v-insert-dns-records

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
# info: inserts dns records
3-
# options: USER DOMAIN DATA_FILE [RESTART]
3+
# options: USER DOMAIN DATA_FILE
44
#
55
# This function copy dns record to the domain conf
66

@@ -12,7 +12,6 @@
1212
user=$1
1313
domain=$2
1414
data_file=$3
15-
restart=$4
1615

1716
# Includes
1817
# shellcheck source=/etc/hestiacp/hestia.conf
@@ -50,10 +49,6 @@ fi
5049
# Hestia #
5150
#----------------------------------------------------------#
5251

53-
# Restarting named
54-
$BIN/v-restart-dns "$restart"
55-
check_result $? "Bind restart failed" >/dev/null
56-
5752
# Logging
5853
log_event "$OK" "$ARGUMENTS"
5954

0 commit comments

Comments
 (0)