fix master zone removed from config when no change
Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
parent
0fe2a633a3
commit
9ba6d7d631
|
@ -8,7 +8,7 @@
|
||||||
# exit script when command fails
|
# exit script when command fails
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
export DNSSCRIPT_VERSION="0.8.1"
|
export DNSSCRIPT_VERSION="0.8.2"
|
||||||
|
|
||||||
. /etc/ffdns/community.conf
|
. /etc/ffdns/community.conf
|
||||||
. /etc/ffdns/local.conf
|
. /etc/ffdns/local.conf
|
||||||
|
@ -142,8 +142,8 @@ if [ -n "$ServeMasterZone" ] || [ -n "$ServeExtZone" ]; then
|
||||||
mv "$CachedMasterFile""I" "$MasterFile"
|
mv "$CachedMasterFile""I" "$MasterFile"
|
||||||
ReloadZone "$MasterDomain" "$InternalViews" "$ZoneFilesFolder"
|
ReloadZone "$MasterDomain" "$InternalViews" "$ZoneFilesFolder"
|
||||||
|
|
||||||
InsertZoneToViews "$InternalViews" "$ZoneFilesFolder" "$MasterDomain" "$MasterFile" "$TempFolder" "$DNSSECPolicy"
|
|
||||||
fi
|
fi
|
||||||
|
InsertZoneToViews "$InternalViews" "$ZoneFilesFolder" "$MasterDomain" "$MasterFile" "$TempFolder" "$DNSSECPolicy"
|
||||||
if [ -n "$ExternalView" ]; then
|
if [ -n "$ExternalView" ]; then
|
||||||
InsertZoneToIncludeFile "$MasterDomain" "$ExternFile" "$TempFolder""$ExternalView"".conf" "$DNSSECPolicy"
|
InsertZoneToIncludeFile "$MasterDomain" "$ExternFile" "$TempFolder""$ExternalView"".conf" "$DNSSECPolicy"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue