Skip to content

Commit 6715f2c

Browse files
committed
sql-query in 550-bind_dnssec.inc.php
1 parent c746e18 commit 6715f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function onRunJob() {
8888

8989
//TODO : change this when distribution information has been integrated into server record
9090
$filespre = (file_exists('/etc/gentoo-release')) ? 'pri/' : 'pri.';
91-
$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 > ?)', intval($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)
91+
$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);

0 commit comments

Comments
 (0)