Skip to content

Commit d327907

Browse files
author
Till Brehm
committed
Merge branch 'dnssec-cron-slaveblock' into 'stable-3.1'
DNSSEC-Cronjob should only run on ispconfig master as we are working with datalo… …g and not accessing things directly @tbrehm, am I right that `$app->db->datalogUpdate`for a soa on the ispc master does also update the dns_soa table in master database or do I have to do this by hand? This could probably be a reason for the issue of @jnorell in #1491 ... See merge request !446
2 parents 6c9ed8a + ec4dd5b commit d327907

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

server/lib/classes/cron.d/550-bind_dnssec.inc.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2929
3030
31-
DNSSEC-Implementation by Alexander Täffner aka dark alex
31+
DNSSEC-Implementation by Alexander Täffner aka dark alex
3232
*/
3333

3434
class cronjob_bind_dnssec extends cronjob {
@@ -59,6 +59,9 @@ private function increase_serial($serial){
5959

6060
public function onRunJob() {
6161
global $app, $conf;
62+
63+
//* job should only run on ispc master
64+
if($app->db->dbHost != $app->dbmaster->dbHost) return;
6265

6366
//* Load libraries
6467
$app->uses("getconf,tpl");

0 commit comments

Comments
 (0)