From a2d1481d27731f0c264cac1ac0394617353dcfe7 Mon Sep 17 00:00:00 2001 From: VirtuBox Date: Fri, 16 Aug 2019 00:26:08 +0200 Subject: [PATCH] Fix two error in site_functions --- wo/cli/plugins/site_functions.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/wo/cli/plugins/site_functions.py b/wo/cli/plugins/site_functions.py index 376e867..a3d110d 100644 --- a/wo/cli/plugins/site_functions.py +++ b/wo/cli/plugins/site_functions.py @@ -870,6 +870,7 @@ def site_package_check(self, stype): return(stack.install(apt_packages=apt_packages, packages=packages, disp_msg=False)) + def updatewpuserpassword(self, wo_domain, wo_site_webroot): wo_wp_user = '' @@ -1225,10 +1226,11 @@ 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_stdout(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: