Update basic_search_replace.yml

Modified the call to --dry-run. Test mode will invoke a different bash script.

TODO:
Check conditional if statement on the button action
Make the cli output as the success text
main
jay 2023-10-23 19:01:40 +00:00
parent fa2dc17088
commit 3d741a308a
1 changed files with 3 additions and 1 deletions

View File

@ -38,8 +38,10 @@ onInstall:
rm master.zip rm master.zip
mv Search-Replace-DB-master mightybox-search-replace-db mv Search-Replace-DB-master mightybox-search-replace-db
wget --directory-prefix=/var/www/webroot/mightybox-search-replace-db https://deploy-proxy.mightybox.io/kits/search_and_replace_add-on/raw/branch/main/basic_search_replace.sh wget --directory-prefix=/var/www/webroot/mightybox-search-replace-db https://deploy-proxy.mightybox.io/kits/search_and_replace_add-on/raw/branch/main/basic_search_replace.sh
wget --directory-prefix=/var/www/webroot/mightybox-search-replace-db https://deploy-proxy.mightybox.io/kits/search_and_replace_add-on/raw/branch/main/basic_search_replace-dry-run.sh
cd /var/www/webroot//mightybox-search-replace-db cd /var/www/webroot//mightybox-search-replace-db
chmod +x basic_search_replace.sh chmod +x basic_search_replace.sh
chmod +x basic_search_replace-dry-run.sh
touch searchreplace.log touch searchreplace.log
#user: root #user: root
@ -61,7 +63,7 @@ actions:
if ( ${settings.testMode} == true ): if ( ${settings.testMode} == true ):
cmd: |- cmd: |-
cd /var/www/webroot/mightybox-search-replace-db/ cd /var/www/webroot/mightybox-search-replace-db/
./basic_search_replace.sh ${settings.termSearch} ${settings.termReplace} --dry-run ./basic_search_replace-dry-run.sh ${settings.termSearch} ${settings.termReplace}
buttons: buttons: