Fix site_url_https function
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user