From 03bc94e69cf1a98dffc4e1001ae5ea0f04eb651e Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Tue, 7 Jul 2020 12:10:40 +0200 Subject: [PATCH] insert task to sync certificates for all cases (issue and renew) Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php index aeeb3a32..e0e152c9 100644 --- a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php +++ b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php @@ -59,8 +59,11 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron // Let's Encrypt cronjob is combined with regeneration of webserver configuration files. // For debugging purposes you can use the --debug switch and the --force switch to run the cron manually. // check whether we MIGHT need to run although there is no task to regenerate config-files - $needRenew = self::issueDomains(); - if ($needRenew || self::issueFroxlorVhost()) { + $issue_froxlor = self::issueFroxlorVhost(); + $issue_domains = self::issueDomains(); + $renew_froxlor = self::renewFroxlorVhost(); + $renew_domains = self::renewDomains(); + if ($issue_froxlor || $issue_domains || $renew_froxlor || $renew_domains) { // insert task to generate certificates and vhost-configs \Froxlor\System\Cronjob::inserttask(1); }