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

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