Fix vhostonly, improve git rollback

* prevent issues with wildcard certs
This commit is contained in:
VirtuBox
2019-10-02 17:23:07 +02:00
parent abff3e14f8
commit 204469ae4c
4 changed files with 14 additions and 23 deletions

View File

@@ -610,6 +610,7 @@ def setupwordpress(self, data, vhostonly=False):
WOShellExec.cmd_exec(self, "/bin/bash -c \"{0} --allow-root "
.format(WOVar.wo_wpcli_path) +
"db clean --yes\"")
WOFileUtils.chdir(self, '{0}'.format(wo_site_webroot))
WOFileUtils.rm(self, "{0}/htdocs".format(wo_site_webroot))
WOFileUtils.mkdir(self, "{0}/htdocs".format(wo_site_webroot))
WOFileUtils.chown(self, "{0}/htdocs".format(wo_site_webroot),