Merge pull request #414 from Koumbit/413-bind_reloads_every_minute

Fix #413: Add return values for bind update domains hooks
This commit is contained in:
Km 2022-09-23 21:53:18 +02:00 committed by GitHub
commit 937339befb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class m_bind {
$serial=date("Ymd")."00"; $serial=date("Ymd")."00";
$islocked=false; $islocked=false;
} }
if ($islocked) return; if ($islocked) return 1;
// Prepare a new zonefile from a template // Prepare a new zonefile from a template
$zone = file_get_contents($this->ZONE_TEMPLATE); $zone = file_get_contents($this->ZONE_TEMPLATE);
@ -117,6 +117,7 @@ class m_bind {
} else { } else {
$this->shouldreload=true; $this->shouldreload=true;
} }
return 0;
} }
@ -141,9 +142,10 @@ class m_bind {
) { ) {
$this->shouldreconfig=true; $this->shouldreconfig=true;
} else { } else {
return; return 0;
} }
@unlink($this->zone_file_directory."/".$domain); @unlink($this->zone_file_directory."/".$domain);
return 0;
} }