Get siteurl variable properly
This commit is contained in:
@@ -1317,10 +1317,10 @@ def site_url_https(self, domain):
|
||||
Log.info(self, "Checking if site url already "
|
||||
"use https, please wait...")
|
||||
WOFileUtils.chdir(self, '{0}/htdocs/'.format(wo_site_webroot))
|
||||
wo_siteurl = WOShellExec.cmd_exec(self,
|
||||
"php {0} option get siteurl "
|
||||
.format(WOVariables.wo_wpcli_path) +
|
||||
"--allow-root --quiet")
|
||||
wo_siteurl = WOShellExec.cmd_exec_stdout(self,
|
||||
"php {0} option get siteurl "
|
||||
.format(WOVariables.wo_wpcli_path) +
|
||||
"--allow-root --quiet")
|
||||
test_url = re.split(":", wo_siteurl)
|
||||
if not (test_url[0] == 'https'):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user