mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-16 02:06:13 +01:00
Merge branch 'v2.3.2-dev' of https://github.com/usmannasir/cyberpanel into v2.3.2-dev
This commit is contained in:
@@ -2118,11 +2118,11 @@ $parameters = array(
|
|||||||
|
|
||||||
## Search and replace url
|
## 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:
|
if ProcessUtilities.executioner(command, website.externalApp) == 0:
|
||||||
raise BaseException('search-replace failed 1. [404]')
|
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:
|
if ProcessUtilities.executioner(command,website.externalApp) == 0:
|
||||||
raise BaseException('search-replace failed 2. [404]')
|
raise BaseException('search-replace failed 2. [404]')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user