Update basic_search_replace.yml
parent
eb65f23a08
commit
4aded46aca
|
@ -59,27 +59,27 @@ actions:
|
||||||
- command: ${this.cmd}
|
- command: ${this.cmd}
|
||||||
|
|
||||||
searchReplace:
|
searchReplace:
|
||||||
- if ( ${settings.termSearch} == ${settings.termReplace} ):
|
|
||||||
- return:
|
|
||||||
type: warning
|
|
||||||
message: "Term to search is the same with term to replace. No action was done"
|
|
||||||
|
|
||||||
- else:
|
- if ( ${settings.testMode} == false ):
|
||||||
- if ( ${settings.testMode} == false ):
|
- cmd [cp]: |-
|
||||||
- cmd [cp]: |-
|
cd /var/www/webroot/mightybox-search-replace-db/
|
||||||
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/
|
||||||
wp cache flush --quiet --path=/var/www/webroot/ROOT/
|
rm -rf /var/www/webroot/.cache/vhosts/Jelastic/*
|
||||||
rm -rf /var/www/webroot/.cache/vhosts/Jelastic/*
|
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
|
||||||
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
|
- if ( ${settings.testMode} == true ):
|
||||||
- else:
|
- cmd [cp]: |-
|
||||||
- cmd [cp]: |-
|
cd /var/www/webroot/mightybox-search-replace-db/
|
||||||
cd /var/www/webroot/mightybox-search-replace-db/
|
./basic_search_replace.sh "${settings.termSearch}" "${settings.termReplace}" -z >> /var/www/webroot/mightybox-search-replace-db/searchreplace.log
|
||||||
./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/
|
||||||
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
|
rm -rf /var/www/webroot/.cache/vhosts/Jelastic/*
|
||||||
- return:
|
tail -8 /var/www/webroot/mightybox-search-replace-db/searchreplace.log | head -7
|
||||||
type: success
|
|
||||||
message: ${response.out}
|
|
||||||
|
|
||||||
|
- return:
|
||||||
|
type: success
|
||||||
|
message: ${response.out}
|
||||||
|
|
||||||
|
|
||||||
buttons:
|
buttons:
|
||||||
|
|
Loading…
Reference in New Issue