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 "
|
Log.info(self, "Checking if site url already "
|
||||||
"use https, please wait...")
|
"use https, please wait...")
|
||||||
WOFileUtils.chdir(self, '{0}/htdocs/'.format(wo_site_webroot))
|
WOFileUtils.chdir(self, '{0}/htdocs/'.format(wo_site_webroot))
|
||||||
wo_siteurl = WOShellExec.cmd_exec(self,
|
wo_siteurl = WOShellExec.cmd_exec_stdout(self,
|
||||||
"php {0} option get siteurl "
|
"php {0} option get siteurl "
|
||||||
.format(WOVariables.wo_wpcli_path) +
|
.format(WOVariables.wo_wpcli_path) +
|
||||||
"--allow-root --quiet")
|
"--allow-root --quiet")
|
||||||
test_url = re.split(":", wo_siteurl)
|
test_url = re.split(":", wo_siteurl)
|
||||||
if not (test_url[0] == 'https'):
|
if not (test_url[0] == 'https'):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user