Skip to content

Commit 9346171

Browse files
committed
fix wp staging
1 parent 31410cc commit 9346171

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

websiteFunctions/StagingSetup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def run(self):
2828
logging.writeToFile(str(msg) + ' [StagingSetup.run]')
2929

3030
def startCloning(self):
31+
global ApplicationInstaller
3132
try:
3233
tempStatusPath = self.extraArgs['tempStatusPath']
3334
self.tempStatusPath = tempStatusPath
@@ -155,7 +156,7 @@ def startCloning(self):
155156
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)
156157
ProcessUtilities.executioner(command)
157158

158-
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)
159+
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)
159160
ProcessUtilities.executioner(command)
160161

161162
command = '%s -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --allow-root --path=%s "https://%s" "http://%s"' % (

0 commit comments

Comments
 (0)