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 textmain
parent
fa2dc17088
commit
3d741a308a
|
@ -38,8 +38,10 @@ onInstall:
|
|||
rm master.zip
|
||||
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-dry-run.sh
|
||||
cd /var/www/webroot//mightybox-search-replace-db
|
||||
chmod +x basic_search_replace.sh
|
||||
chmod +x basic_search_replace-dry-run.sh
|
||||
touch searchreplace.log
|
||||
|
||||
#user: root
|
||||
|
@ -61,7 +63,7 @@ actions:
|
|||
if ( ${settings.testMode} == true ):
|
||||
cmd: |-
|
||||
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:
|
||||
|
|
Loading…
Reference in New Issue