mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-28 10:19:04 +01:00
Merge pull request #1247 from jodhpurlaxman/jodhpurlaxman-patch-1
Excluded suspended websites in SSL certificate renew
This commit is contained in:
@@ -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()
|
||||
sslOB.SSLObtainer()
|
||||
|
||||
Reference in New Issue
Block a user