Fix two error in site_functions
This commit is contained in:
@@ -870,6 +870,7 @@ def site_package_check(self, stype):
|
|||||||
return(stack.install(apt_packages=apt_packages, packages=packages,
|
return(stack.install(apt_packages=apt_packages, packages=packages,
|
||||||
disp_msg=False))
|
disp_msg=False))
|
||||||
|
|
||||||
|
|
||||||
def updatewpuserpassword(self, wo_domain, wo_site_webroot):
|
def updatewpuserpassword(self, wo_domain, wo_site_webroot):
|
||||||
|
|
||||||
wo_wp_user = ''
|
wo_wp_user = ''
|
||||||
@@ -1225,10 +1226,11 @@ 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_stdout(self,
|
wo_siteurl = \
|
||||||
"php {0} option get siteurl "
|
WOShellExec.cmd_exec_stdout(self,
|
||||||
.format(WOVariables.wo_wpcli_path) +
|
"php {0} option get siteurl "
|
||||||
"--allow-root --quiet")
|
.format(WOVariables.wo_wpcli_path) +
|
||||||
|
"--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