fix master zone removed from config when no change

Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
Blackyfff 2021-07-28 21:48:06 +02:00
parent 0fe2a633a3
commit 9ba6d7d631
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
# exit script when command fails
set -e
export DNSSCRIPT_VERSION="0.8.1"
export DNSSCRIPT_VERSION="0.8.2"
. /etc/ffdns/community.conf
. /etc/ffdns/local.conf
@ -142,8 +142,8 @@ if [ -n "$ServeMasterZone" ] || [ -n "$ServeExtZone" ]; then
mv "$CachedMasterFile""I" "$MasterFile"
ReloadZone "$MasterDomain" "$InternalViews" "$ZoneFilesFolder"
InsertZoneToViews "$InternalViews" "$ZoneFilesFolder" "$MasterDomain" "$MasterFile" "$TempFolder" "$DNSSECPolicy"
fi
InsertZoneToViews "$InternalViews" "$ZoneFilesFolder" "$MasterDomain" "$MasterFile" "$TempFolder" "$DNSSECPolicy"
if [ -n "$ExternalView" ]; then
InsertZoneToIncludeFile "$MasterDomain" "$ExternFile" "$TempFolder""$ExternalView"".conf" "$DNSSECPolicy"
fi