Fix virtualenv configuration

This commit is contained in:
VirtuBox
2020-10-26 14:21:04 +01:00
parent 009b5e1af6
commit 295b8420cf
3 changed files with 60 additions and 16 deletions

View File

@@ -444,7 +444,10 @@ class WOSiteDeleteController(CementBaseController):
# TODO Delete nginx conf
removeNginxConf(self, wo_domain)
deleteSiteInfo(self, wo_domain)
WOAcme.removeconf(self, wo_domain)
# To improve
if not WOFileUtils.grepcheck(
self, '/var/www/22222/conf/nginx/ssl.conf', wo_domain):
WOAcme.removeconf(self, wo_domain)
Log.info(self, "Deleted site {0}".format(wo_domain))