From ec4dd5b94900fc4c221c84e7d8d08b18718f4df0 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 12 Sep 2016 19:00:47 +0200 Subject: [PATCH] DNSSEC-Cronjob should only run on ispconfig master as we are working with datalog and not accessing things directly --- server/lib/classes/cron.d/550-bind_dnssec.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/lib/classes/cron.d/550-bind_dnssec.inc.php b/server/lib/classes/cron.d/550-bind_dnssec.inc.php index abf64273a1..cf5918e5c0 100644 --- a/server/lib/classes/cron.d/550-bind_dnssec.inc.php +++ b/server/lib/classes/cron.d/550-bind_dnssec.inc.php @@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -DNSSEC-Implementation by Alexander Täffner aka dark alex +DNSSEC-Implementation by Alexander Täffner aka dark alex */ class cronjob_bind_dnssec extends cronjob { @@ -59,6 +59,9 @@ class cronjob_bind_dnssec extends cronjob { public function onRunJob() { global $app, $conf; + + //* job should only run on ispc master + if($app->db->dbHost != $app->dbmaster->dbHost) return; //* Load libraries $app->uses("getconf,tpl"); -- GitLab