Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 1 addition & 12 deletions plogical/renew.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,6 @@ def SSLObtainer(self):
'Renewing SSL for %s..' % (website.domain), 0)

virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain), website.adminEmail)
else:
logging.writeToFile(
'SSL does not exist for %s. Obtaining now..' % (website.domain), 0)
virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain),
website.adminEmail)

## For child-domains

Expand Down Expand Up @@ -96,16 +91,10 @@ def SSLObtainer(self):

virtualHostUtilities.issueSSL(website.domain, website.path,
website.master.adminEmail)
else:
logging.writeToFile(
'SSL does not exist for %s. Obtaining now..' % (website.domain), 0)
virtualHostUtilities.issueSSL(website.domain, website.path,
website.master.adminEmail)

except BaseException as msg:
logging.writeToFile(str(msg) + '. Renew.SSLObtainer')


if __name__ == "__main__":
sslOB = Renew()
sslOB.SSLObtainer()
sslOB.SSLObtainer()