File tree Expand file tree Collapse file tree 3 files changed +4
-19
lines changed
Expand file tree Collapse file tree 3 files changed +4
-19
lines changed Original file line number Diff line number Diff line change 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
1312data=$2
1413src=$3
1514flush=$4
16- restart=$5
1715
1816# Includes
1917# shellcheck source=/etc/hestiacp/hestia.conf
@@ -22,6 +20,7 @@ source /etc/hestiacp/hestia.conf
2220source $HESTIA /func/main.sh
2321# shellcheck source=/usr/local/hestia/func/domain.sh
2422source $HESTIA /func/domain.sh
23+
2524# load config file
2625source_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
9186log_event " $OK " " $ARGUMENTS "
9287
Original file line number Diff line number Diff line change 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
1212user=$1
1313domain=$2
1414data=$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
5651log_event " $OK " " $ARGUMENTS "
5752
Original file line number Diff line number Diff line change 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
1212user=$1
1313domain=$2
1414data_file=$3
15- restart=$4
1615
1716# Includes
1817# shellcheck source=/etc/hestiacp/hestia.conf
5049# Hestia #
5150# ----------------------------------------------------------#
5251
53- # Restarting named
54- $BIN /v-restart-dns " $restart "
55- check_result $? " Bind restart failed" > /dev/null
56-
5752# Logging
5853log_event " $OK " " $ARGUMENTS "
5954
You can’t perform that action at this time.
0 commit comments