From d82e4ac79b387805aac833c530e52f11c8925185 Mon Sep 17 00:00:00 2001 From: Laxman Singh Date: Fri, 5 Apr 2024 17:54:53 +0530 Subject: [PATCH] Excluded suspended websites in SSL certificate renew --- plogical/renew.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plogical/renew.py b/plogical/renew.py index fd54a15e6..c283673df 100644 --- a/plogical/renew.py +++ b/plogical/renew.py @@ -19,9 +19,9 @@ class Renew: try: logging.writeToFile('Running SSL Renew Utility') - ## For websites + ## For Non-suspended websites only - for website in Websites.objects.all(): + for website in Websites.objects.filter(status=1): logging.writeToFile('Checking SSL for %s.' % (website.domain), 0) filePath = '/etc/letsencrypt/live/%s/fullchain.pem' % (website.domain) @@ -150,4 +150,4 @@ class Renew: if __name__ == "__main__": sslOB = Renew() - sslOB.SSLObtainer() \ No newline at end of file + sslOB.SSLObtainer()