initial integration of let's encrypt renew-hook for froxlor-vhost; refs #1186

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-01-13 11:12:48 +01:00
parent e684de687f
commit 8740947323
7 changed files with 107 additions and 11 deletions

View File

@@ -91,3 +91,13 @@ if (Froxlor::isFroxlorVersion('2.1.4')) {
Froxlor::updateToDbVersion('202312230');
Froxlor::updateToVersion('2.2.0-dev1');
}
if (Froxlor::isDatabaseVersion('202312230')) {
Update::showUpdateStep("Adding new settings");
Settings::AddNew("system.le_renew_services", "");
Settings::AddNew("system.le_renew_hook", "systemctl restart postfix dovecot proftpd");
Update::lastStepStatus(0);
Froxlor::updateToDbVersion('202401090');
}