Fixed a bug with logging.
This commit is contained in:
parent
c38db655ff
commit
90229cf1c2
@ -37,15 +37,16 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then
|
|||||||
# Loop through configs
|
# Loop through configs
|
||||||
for f in $(dirname $0)/nsupdate.d/*.config
|
for f in $(dirname $0)/nsupdate.d/*.config
|
||||||
do
|
do
|
||||||
|
source $f
|
||||||
|
|
||||||
if [[ "$SILENT" == "NO" ]]; then
|
if [[ "$SILENT" == "NO" ]]; then
|
||||||
echo "Starting nameserver update with config file $f ($LOG)"
|
echo "Starting nameserver update with config file $f ($LOG)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Set record type to IPv4
|
## Set record type to IPv4
|
||||||
TYPE=A
|
TYPE=A
|
||||||
CONNECTION_TYPE=4
|
CONNECTION_TYPE=4
|
||||||
|
|
||||||
source $f
|
|
||||||
|
|
||||||
## Set record type to MX
|
## Set record type to MX
|
||||||
if [[ "$MX" == "YES" ]]; then
|
if [[ "$MX" == "YES" ]]; then
|
||||||
TYPE=MX
|
TYPE=MX
|
||||||
|
Loading…
x
Reference in New Issue
Block a user