do not check for possible existing certificate in case of issue for froxlor-vhost

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-03-07 20:40:05 +01:00
parent 0a221d0479
commit 8f5bd789a4

View File

@@ -233,9 +233,7 @@ class AcmeSh extends FroxlorCron
");
$froxlor_ssl = Database::pexecute_first($froxlor_ssl_settings_stmt);
// also check for possible existing certificate
if (($froxlor_ssl && empty($froxlor_ssl['validtodate']))
|| (!$froxlor_ssl && !self::checkFsFilesAreNewer(Settings::Get('system.hostname'), date('Y-m-d H:i:s')))
) {
if (!$froxlor_ssl || empty($froxlor_ssl['validtodate'])) {
return true;
}
}