Update le
This commit is contained in:
@@ -16,7 +16,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
- Arguments `--letsencrypt=clean/purge`
|
- Arguments `--letsencrypt=clean/purge`
|
||||||
- Incorrect directory removal during stack upgrade
|
- Incorrect directory removal during stack upgrade
|
||||||
|
|
||||||
|
|
||||||
### v3.9.6.1 - 2019-07-23
|
### v3.9.6.1 - 2019-07-23
|
||||||
|
|
||||||
#### Fixed
|
#### Fixed
|
||||||
|
|||||||
@@ -1298,6 +1298,7 @@ def removeNginxConf(self, domain):
|
|||||||
def removeAcmeConf(self, domain):
|
def removeAcmeConf(self, domain):
|
||||||
if os.path.isdir('/etc/letsencrypt/renewal/{0}_ecc'
|
if os.path.isdir('/etc/letsencrypt/renewal/{0}_ecc'
|
||||||
.format(domain)):
|
.format(domain)):
|
||||||
|
Log.info(self, "Removing Acme configuration")
|
||||||
Log.debug(self, "Removing Acme configuration")
|
Log.debug(self, "Removing Acme configuration")
|
||||||
try:
|
try:
|
||||||
WOShellExec.cmd_exec(self, "/etc/letsencrypt/acme.sh "
|
WOShellExec.cmd_exec(self, "/etc/letsencrypt/acme.sh "
|
||||||
@@ -1308,18 +1309,21 @@ def removeAcmeConf(self, domain):
|
|||||||
.format(domain))
|
.format(domain))
|
||||||
except CommandExecutionError as e:
|
except CommandExecutionError as e:
|
||||||
Log.error(self, "Cert removal failed")
|
Log.error(self, "Cert removal failed")
|
||||||
|
|
||||||
WOFileUtils.rm(self, '/etc/letsencrypt/renewal/{0}_ecc'
|
WOFileUtils.rm(self, '/etc/letsencrypt/renewal/{0}_ecc'
|
||||||
.format(domain))
|
.format(domain))
|
||||||
WOFileUtils.rm(self, '/etc/letsencrypt/live/{0}'
|
WOFileUtils.rm(self, '/etc/letsencrypt/live/{0}'
|
||||||
.format(domain))
|
.format(domain))
|
||||||
WOFileUtils.rm(self, '/var/www/{0}/conf/nginx/ssl.conf'.format(domain))
|
WOFileUtils.rm(self, '/var/www/{0}/conf/nginx/ssl.conf'
|
||||||
|
.format(domain))
|
||||||
WOFileUtils.rm(self, '/var/www/{0}/conf/nginx/ssl.conf.disabled'
|
WOFileUtils.rm(self, '/var/www/{0}/conf/nginx/ssl.conf.disabled'
|
||||||
.format(domain))
|
.format(domain))
|
||||||
WOFileUtils.rm(
|
WOFileUtils.rm(self, '/etc/nginx/conf.d/force-ssl-{0}.conf'
|
||||||
self, '/etc/nginx/conf.d/force-ssl-{0}.conf'.format(domain))
|
.format(domain))
|
||||||
WOFileUtils.rm(
|
WOFileUtils.rm(self, '/etc/nginx/conf.d/force-ssl-{0}.conf.disabled'
|
||||||
self, '/etc/nginx/conf.d/force-ssl-{0}.conf.disabled'.format(domain))
|
.format(domain))
|
||||||
|
|
||||||
|
updateSiteInfo(self, wo_domain, ssl=False)
|
||||||
WOGit.add(self, ["/etc/letsencrypt"],
|
WOGit.add(self, ["/etc/letsencrypt"],
|
||||||
msg="Deleted {0} "
|
msg="Deleted {0} "
|
||||||
.format(domain))
|
.format(domain))
|
||||||
|
|||||||
Reference in New Issue
Block a user