Update basic_search_replace.yml

main
jay 2023-11-05 04:18:39 +00:00
parent d49e43582f
commit e103966d61
1 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,7 @@
type: update
name: Search Replace DB
description: Search and replace Database
description: Databse Search and Replace utility
logo: https://d33v4339jhl8k0.cloudfront.net/docs/assets/629d6154f38bfd3f4a4c3046/images/62ce4ffaeabe9a7235b3d220/white-300.png
targetNodes:
nodeGroup: cp
@ -59,7 +60,7 @@ actions:
- command: ${this.cmd}
searchReplace:
- if ( ${settings.testMode} == false ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
@ -67,6 +68,10 @@ actions:
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.termSearch}' === '${settings.termReplace}' ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
echo "Term to search is the same with term to replace. No action necessary"
- if ( ${settings.testMode} == true ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
@ -74,6 +79,10 @@ actions:
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.termSearch}' === '${settings.termReplace}' ):
- cmd [cp]: |-
cd /var/www/webroot/mightybox-search-replace-db/
echo "Term to search is the same with term to replace. No action necessary"