From e94441ffbc7d5415b8de63978a749489ba24577e Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Sat, 11 Jun 2022 17:59:19 +0500 Subject: [PATCH] bug fix: staging --- plogical/applicationInstaller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plogical/applicationInstaller.py b/plogical/applicationInstaller.py index 49c7cf940..3c725a75a 100755 --- a/plogical/applicationInstaller.py +++ b/plogical/applicationInstaller.py @@ -2119,11 +2119,11 @@ $parameters = array( ## Search and replace url - command = f'{FinalPHPPath} -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --path={StagingPath} "{masterDomain}" "{domain}"' + command = f'{FinalPHPPath} -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --path={StagingPath} "{wpobj.FinalURL}" "{domain}"' if ProcessUtilities.executioner(command, website.externalApp) == 0: raise BaseException('search-replace failed 1. [404]') - command = f'{FinalPHPPath} -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --path={StagingPath} "www.{masterDomain}" "{domain}"' + command = f'{FinalPHPPath} -d error_reporting=0 /usr/bin/wp search-replace --skip-plugins --skip-themes --path={StagingPath} "www.{wpobj.FinalURL}" "{domain}"' if ProcessUtilities.executioner(command,website.externalApp) == 0: raise BaseException('search-replace failed 2. [404]')