diff --git a/nsupdate.sh b/nsupdate.sh index 96c5be1..ffc2efd 100755 --- a/nsupdate.sh +++ b/nsupdate.sh @@ -37,15 +37,16 @@ if ls $(dirname $0)/nsupdate.d/*.config &> /dev/null; then # Loop through configs for f in $(dirname $0)/nsupdate.d/*.config do + source $f + if [[ "$SILENT" == "NO" ]]; then echo "Starting nameserver update with config file $f ($LOG)" fi + ## Set record type to IPv4 TYPE=A CONNECTION_TYPE=4 - source $f - ## Set record type to MX if [[ "$MX" == "YES" ]]; then TYPE=MX