Skip to content

Commit ec4dd5b

Browse files
committed
DNSSEC-Cronjob should only run on ispconfig master as we are working with datalog and not accessing things directly
1 parent ec1ea49 commit ec4dd5b

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)