From 9ba6d7d6319adf46a7fba6ed2e3dc8e7d4eee2ab Mon Sep 17 00:00:00 2001 From: Blackyfff Date: Wed, 28 Jul 2021 21:48:06 +0200 Subject: [PATCH] fix master zone removed from config when no change Signed-off-by: Blackyfff --- usr/lib/ffdns/update-dns.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/lib/ffdns/update-dns.sh b/usr/lib/ffdns/update-dns.sh index 581ab4f..aa10a1e 100644 --- a/usr/lib/ffdns/update-dns.sh +++ b/usr/lib/ffdns/update-dns.sh @@ -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