Fix site_url_https function

This commit is contained in:
VirtuBox
2019-07-29 18:40:42 +02:00
parent 46d95ba84e
commit fad2e6c8a8
2 changed files with 2 additions and 2 deletions

View File

@@ -778,7 +778,7 @@ class WOSiteCreateController(CementBaseController):
msg="Adding letsencrypts config of site: {0}"
.format(wo_domain))
updateSiteInfo(self, wo_domain, ssl=letsencrypt)
site_url_https(self, wo_domain, wo_site_webroot)
site_url_https(self, data)
elif data['letsencrypt'] is False:
Log.info(self, "Not using Let\'s encrypt for Site "
" http://{0}".format(wo_domain))

View File

@@ -650,7 +650,7 @@ def site_url_https(self, data):
WOFileUtils.chdir(self, '{0}/htdocs/'.format(wo_site_webroot))
test_site_url = WOShellExec.cmd_exec(self, "php {0} option get siteurl "
.format(WOVariables.wo_wpcli_path) +
"--allow-root --quiet").split("://")
"--allow-root --quiet").split(":")
if not test_site_url[0] == "https":
try:
WOShellExec.cmd_exec(self, "php {0} option update siteurl "