From 7ec62401e75b14f77bf4e697b430078bd00f3e90 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Mon, 7 Mar 2016 14:08:59 +0100 Subject: [PATCH] LE is disabled by default so should the cron be; also activate cron if updaters activate LE Signed-off-by: Michael Kaufmann (d00p) --- install/froxlor.sql | 2 +- install/updates/froxlor/0.9/update_0.9.inc.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/install/froxlor.sql b/install/froxlor.sql index d3e99dcf..ebca9ddc 100644 --- a/install/froxlor.sql +++ b/install/froxlor.sql @@ -765,7 +765,7 @@ INSERT INTO `cronjobs_run` (`id`, `module`, `cronfile`, `interval`, `isactive`, (4, 'froxlor/ticket', 'ticketarchive', '1 MONTH', '1', 'cron_ticketarchive'), (5, 'froxlor/reports', 'usage_report', '1 DAY', '1', 'cron_usage_report'), (6, 'froxlor/core', 'mailboxsize', '6 HOUR', '1', 'cron_mailboxsize'), - (7, 'froxlor/letsencrypt', 'letsencrypt', '5 MINUTE', '1', 'cron_letsencrypt'); + (7, 'froxlor/letsencrypt', 'letsencrypt', '5 MINUTE', '0', 'cron_letsencrypt'); diff --git a/install/updates/froxlor/0.9/update_0.9.inc.php b/install/updates/froxlor/0.9/update_0.9.inc.php index 6d9139f1..c99f9aa5 100644 --- a/install/updates/froxlor/0.9/update_0.9.inc.php +++ b/install/updates/froxlor/0.9/update_0.9.inc.php @@ -3040,7 +3040,7 @@ if (isFroxlorVersion('0.9.34.2')) { `interval` = '5 MINUTE', `desc_lng_key` = 'cron_letsencrypt', `lastrun` = UNIX_TIMESTAMP(), - `isactive` = 1" + `isactive` = 0" ); Database::pexecute($stmt); lastStepStatus(0); @@ -3158,6 +3158,7 @@ if (isFroxlorVersion('0.9.35-rc1')) { showUpdateStep("Adding new setting to enable/disable Let's Encrypt"); $enable_letsencrypt = isset($_POST['enable_letsencrypt']) ? (int)$_POST['enable_letsencrypt'] : "1"; Settings::AddNew("system.leenabled", $enable_letsencrypt); + Database::query("UPDATE `".TABLE_PANEL_CRONRUNS."` SET `active` = '".$enable_letsencrypt."' WHERE `cronfile` = 'letsencrypt'"); lastStepStatus(0); }