Update basic_search_replace.yml

main
denny 2023-11-02 17:03:46 +00:00
parent e5214eb762
commit bc7949558d
1 changed files with 2 additions and 4 deletions

View File

@ -63,16 +63,14 @@ actions:
- if ( ${settings.testMode} == false ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
./basic_search_replace.sh ${settings.termSearch} ${settings.termReplace} >> /var/www/webroot/mightybox-search-replace-db/searchreplace.log
./basic_search_replace.sh "${settings.termSearch}" "${settings.termReplace}" >> /var/www/webroot/mightybox-search-replace-db/searchreplace.log
wp cache flush --quiet --path=/var/www/webroot/ROOT/
rm -rf /var/www/webroot/.cache/vhosts/Jelastic/*
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
- if ( ${settings.testMode} == true ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
./basic_search_replace-dry-run.sh ${settings.termSearch} ${settings.termReplace} >> /var/www/webroot/mightybox-search-replace-db/searchreplace.log
wp cache flush --quiet --path=/var/www/webroot/ROOT/
rm -rf /var/www/webroot/.cache/vhosts/Jelastic/*
./basic_search_replace-dry-run.sh "${settings.termSearch}" "${settings.termReplace}" >> /var/www/webroot/mightybox-search-replace-db/searchreplace.log
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
- return:
type: success