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()