Skip to content

Commit

Permalink
Merge pull request #414 from Koumbit/413-bind_reloads_every_minute
Browse files Browse the repository at this point in the history
Fix #413: Add return values for bind update domains hooks
  • Loading branch information
camlafit committed Sep 23, 2022
2 parents 13a9ad5 + d373365 commit 937339b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bureau/class/m_bind.php
Expand Up @@ -68,7 +68,7 @@ function hook_updatedomains_dns_add($dominfo) {
$serial=date("Ymd")."00";
$islocked=false;
}
if ($islocked) return;
if ($islocked) return 1;

// Prepare a new zonefile from a template
$zone = file_get_contents($this->ZONE_TEMPLATE);
Expand Down Expand Up @@ -117,6 +117,7 @@ function hook_updatedomains_dns_add($dominfo) {
} else {
$this->shouldreload=true;
}
return 0;
}


Expand All @@ -141,9 +142,10 @@ function hook_updatedomains_dns_del($dominfo) {
) {
$this->shouldreconfig=true;
} else {
return;
return 0;
}
@unlink($this->zone_file_directory."/".$domain);
return 0;
}


Expand Down

0 comments on commit 937339b

Please sign in to comment.