Skip to content

Commit 57c04e6

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
Fixes #4695 See merge request !625
2 parents 6a596ea + 1aa8a59 commit 57c04e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ public function onRunJob() {
8787
$dns_config = $app->getconf->get_server_config($conf["server_id"], 'dns');
8888

8989
//TODO : change this when distribution information has been integrated into server record
90-
$filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
90+
// $filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
9191
$soas = $app->db->queryAllRecords("SELECT id,serial,origin FROM dns_soa WHERE server_id = ? AND active= 'Y' AND dnssec_wanted = 'Y' AND dnssec_initialized = 'Y' AND (dnssec_last_signed < ? OR dnssec_last_signed > ?)", $conf['server_id'], time()-(3600*24*5)+900, time()+900); //Resign zones every 5 days (expiry is 16 days so we have enough safety, 15 minutes tolerance)
9292

9393
foreach ($soas as $data) {
9494
$domain = substr($data['origin'], 0, strlen($data['origin'])-1);
95-
if (!file_exists($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain)) continue;
95+
// if (!file_exists($dns_config['bind_zonefiles_dir'].'/'.$filespre.$domain)) continue;
9696

9797
$app->log('DNSSEC Auto-Resign: Touching zone '.$domain, LOGLEVEL_DEBUG);
9898
$app->db->datalogUpdate('dns_soa', array("serial" => $this->increase_serial($data['serial'])), 'id', $data['id']);

0 commit comments

Comments
 (0)