fix ssl util
This commit is contained in:
@@ -9,8 +9,8 @@ class SSL:
|
|||||||
# check if exist
|
# check if exist
|
||||||
if not os.path.isfile('/etc/letsencrypt/live/{0}/cert.pem'
|
if not os.path.isfile('/etc/letsencrypt/live/{0}/cert.pem'
|
||||||
.format(domain)):
|
.format(domain)):
|
||||||
Log.error(self, 'File Not Found: "
|
Log.error(self, 'File Not Found: '
|
||||||
"/etc/letsencrypt/live/{0}/cert.pem'"
|
'/etc/letsencrypt/live/{0}/cert.pem'
|
||||||
.format(domain), False)
|
.format(domain), False)
|
||||||
if returnonerror:
|
if returnonerror:
|
||||||
return -1
|
return -1
|
||||||
@@ -38,8 +38,8 @@ class SSL:
|
|||||||
# check if exist
|
# check if exist
|
||||||
if not os.path.isfile('/etc/letsencrypt/live/{0}/cert.pem'
|
if not os.path.isfile('/etc/letsencrypt/live/{0}/cert.pem'
|
||||||
.format(domain)):
|
.format(domain)):
|
||||||
Log.error(self, 'File Not Found: "/etc/letsencrypt/"
|
Log.error(self, 'File Not Found: /etc/letsencrypt/'
|
||||||
"live/{0}/cert.pem'"
|
'live/{0}/cert.pem'
|
||||||
.format(domain), False)
|
.format(domain), False)
|
||||||
Log.error(self, "Check the WordOps log for more details "
|
Log.error(self, "Check the WordOps log for more details "
|
||||||
"`tail /var/log/wo/wordops.log` and please try again...")
|
"`tail /var/log/wo/wordops.log` and please try again...")
|
||||||
|
|||||||
Reference in New Issue
Block a user