Add basic_search_replace.yml
parent
0210671e47
commit
c6d99a9a1d
|
@ -0,0 +1,61 @@
|
||||||
|
type: update
|
||||||
|
name: Search Replace DB
|
||||||
|
description: Search and replace Database
|
||||||
|
|
||||||
|
targetNodes:
|
||||||
|
nodeGroup: cp
|
||||||
|
|
||||||
|
settings:
|
||||||
|
config:
|
||||||
|
fields:
|
||||||
|
- caption: Search
|
||||||
|
editable: true
|
||||||
|
type: string
|
||||||
|
name: termSearch
|
||||||
|
default: Terms to search
|
||||||
|
tooltip: Enter the terms to search
|
||||||
|
- caption: Replace
|
||||||
|
editable: true
|
||||||
|
type: string
|
||||||
|
name: termReplace
|
||||||
|
default: Terms to replace with
|
||||||
|
tooltip: Enter the terms to replace with
|
||||||
|
|
||||||
|
onInstall:
|
||||||
|
- remoteOperations:
|
||||||
|
nodeGroup: cp
|
||||||
|
cmd: |-
|
||||||
|
cd /var/www/webroot/
|
||||||
|
wget --directory-prefix=/var/www/webroot/ https://github.com/interconnectit/Search-Replace-DB/archive/refs/heads/master.zip
|
||||||
|
unzip master.zip
|
||||||
|
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
|
||||||
|
cd /var/www/webroot//mightybox-search-replace-db
|
||||||
|
chmod +x basic_search_replace.sh
|
||||||
|
|
||||||
|
#user: root
|
||||||
|
#sayYes: true
|
||||||
|
|
||||||
|
|
||||||
|
actions:
|
||||||
|
remoteOperations:
|
||||||
|
env.control.ExecCmdByGroup:
|
||||||
|
nodeGroup: cp
|
||||||
|
commandList:
|
||||||
|
- command: ${this.cmd}
|
||||||
|
|
||||||
|
searchReplace:
|
||||||
|
- nodeGroup: cp
|
||||||
|
cmd: |-
|
||||||
|
./var/www/webroot/mightybox-search-replace-db/basic_search_replace.sh ${settings.termSearch} ${settings.termReplace}
|
||||||
|
|
||||||
|
|
||||||
|
buttons:
|
||||||
|
- settings: config
|
||||||
|
caption: Search & Replace
|
||||||
|
action: searchReplace
|
||||||
|
submitButtonText: Search & Replace
|
||||||
|
loadingText:
|
||||||
|
confirmText:
|
||||||
|
successText:
|
Loading…
Reference in New Issue