From 9346171aca959a6256196cc6ef399d9b6acfa501 Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 18 Sep 2021 13:19:05 +0500 Subject: [PATCH] fix wp staging --- websiteFunctions/StagingSetup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/websiteFunctions/StagingSetup.py b/websiteFunctions/StagingSetup.py index cd63c5bea..04b5a8f45 100644 --- a/websiteFunctions/StagingSetup.py +++ b/websiteFunctions/StagingSetup.py @@ -28,6 +28,7 @@ class StagingSetup(multi.Thread): logging.writeToFile(str(msg) + ' [StagingSetup.run]') def startCloning(self): + global ApplicationInstaller try: tempStatusPath = self.extraArgs['tempStatusPath'] self.tempStatusPath = tempStatusPath @@ -155,7 +156,7 @@ class StagingSetup(multi.Thread): command = '%s -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "%s" "%s"' % (FinalPHPPath, path, replaceDomain, domain) ProcessUtilities.executioner(command) - command = '%s -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "www.%s" "%s"' % (FinalPHPPath, path, replaceDomain, domain) + command = '%s -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "www.%s" "%s"' % (FinalPHPPath, path, domain, domain) ProcessUtilities.executioner(command) command = '%s -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "https://%s" "http://%s"' % (