mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-18 11:11:01 +01:00
added some debugging info
This commit is contained in:
@@ -41,23 +41,34 @@ class Renew:
|
|||||||
if int(diff.days) >= 15 and SSLProvider!='Denial':
|
if int(diff.days) >= 15 and SSLProvider!='Denial':
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'SSL exists for %s and is not ready to renew, skipping..' % (website.domain), 0)
|
'SSL exists for %s and is not ready to renew, skipping..' % (website.domain), 0)
|
||||||
|
print(
|
||||||
|
f'SSL exists for %s and is not ready to renew, skipping..' % (website.domain))
|
||||||
elif SSLProvider == 'Denial':
|
elif SSLProvider == 'Denial':
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'SSL exists for %s and ready to renew..' % (website.domain), 0)
|
'SSL exists for %s and ready to renew..' % (website.domain), 0)
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'Renewing SSL for %s..' % (website.domain), 0)
|
'Renewing SSL for %s..' % (website.domain), 0)
|
||||||
|
|
||||||
|
print(
|
||||||
|
f'SSL exists for %s and ready to renew..' % (website.domain))
|
||||||
|
|
||||||
virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain),
|
virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain),
|
||||||
website.adminEmail)
|
website.adminEmail)
|
||||||
elif SSLProvider != "Let's Encrypt":
|
elif SSLProvider != "Let's Encrypt":
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'Custom SSL exists for %s and ready to renew..' % (website.domain), 1)
|
'Custom SSL exists for %s and ready to renew..' % (website.domain), 1)
|
||||||
|
print(
|
||||||
|
'Custom SSL exists for %s and ready to renew..' % (website.domain))
|
||||||
else:
|
else:
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'SSL exists for %s and ready to renew..' % (website.domain), 0)
|
'SSL exists for %s and ready to renew..' % (website.domain), 0)
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
'Renewing SSL for %s..' % (website.domain), 0)
|
'Renewing SSL for %s..' % (website.domain), 0)
|
||||||
|
|
||||||
|
print(
|
||||||
|
'SSL exists for %s and ready to renew..' % (website.domain))
|
||||||
|
|
||||||
|
|
||||||
virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain), website.adminEmail)
|
virtualHostUtilities.issueSSL(website.domain, '/home/%s/public_html' % (website.domain), website.adminEmail)
|
||||||
else:
|
else:
|
||||||
logging.writeToFile(
|
logging.writeToFile(
|
||||||
|
|||||||
Reference in New Issue
Block a user