LE is disabled by default so should the cron be; also activate cron if updaters activate LE

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2016-03-07 14:08:59 +01:00
parent be83c99334
commit 7ec62401e7
2 changed files with 3 additions and 2 deletions

View File

@@ -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');

View File

@@ -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);
}