Fix: prevent multiple instaces

Signed-off-by: Blackyfff <freifunk@freifunk-herpf.de>
This commit is contained in:
Blackyfff 2023-04-06 01:32:04 +02:00
parent 48914a9bfb
commit 326bf37208
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ ForwardZones="$MasterDomain""/""$ZoneFilesFolder""db.""$FirstInternalView"".""$M
SetupCache
flock -n "$DNSSCRIPT_TEMP_FOLDER""script.lock" -c :
CachedMasterFile="$DNSSCRIPT_TEMP_FOLDER""cache/db.""$MasterDomain"
PreFetchMasterSerial="$(GetZoneFileSerial "$CachedMasterFile")"
GetMasterFile