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:
@@ -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');
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user