Updated deploy git URL
parent
0ce6d6eb0b
commit
37b8ec75c1
25
mbadmin.jps
25
mbadmin.jps
|
@ -1,6 +1,6 @@
|
|||
type: update
|
||||
id: mbadmin
|
||||
version: '1.5'
|
||||
version: '2.3'
|
||||
name: MB Administration
|
||||
description: Mighty Box Control Panel Administration
|
||||
|
||||
|
@ -75,13 +75,18 @@ menu:
|
|||
caption: Import WordPress DB
|
||||
action: import_wp_db
|
||||
settings: dbImportConfig
|
||||
successText: "Database imported successfully from /var/www/webroot/ROOT/${settings.db_filename}.sql"
|
||||
successText: "${response.out}"
|
||||
- confirmText: Are you sure you want to perform a search and replace?
|
||||
loadingText: Performing Search and Replace...
|
||||
caption: Search and Replace URL
|
||||
action: search_replace_urls
|
||||
settings: searchReplaceConfig
|
||||
successText: "Search and Replace completed successfully for '${settings.old_url}' with '${settings.new_url}' in all tables."
|
||||
- confirmText: Are you sure you want to prepare for DB import?
|
||||
loadingText: Preparing for DB import...
|
||||
caption: DB Import Preparation
|
||||
action: db_import_preparation
|
||||
successText: "${response.out}"
|
||||
|
||||
settings:
|
||||
rsyncConfig:
|
||||
|
@ -424,6 +429,22 @@ actions:
|
|||
- return:
|
||||
type: info
|
||||
message: "${response.out}"
|
||||
db_import_preparation:
|
||||
- cmd[cp]:
|
||||
user: root
|
||||
commands:
|
||||
- if [ ! -f /home/litespeed/mbmanager/dbPreparation.sh ]; then
|
||||
echo "dbPreparation.sh not found. Downloading the script...";
|
||||
mkdir -p /home/litespeed/mbmanager;
|
||||
curl -o /home/litespeed/mbmanager/dbPreparation.sh https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/dbPreparation.sh;
|
||||
chmod +x /home/litespeed/mbmanager/dbPreparation.sh;
|
||||
else
|
||||
echo "dbPreparation.sh already exists. Running the script...";
|
||||
fi;
|
||||
- /home/litespeed/mbmanager/dbPreparation.sh
|
||||
- return:
|
||||
type: info
|
||||
message: "${response.out}"
|
||||
|
||||
responses:
|
||||
enableSuccess:
|
||||
|
|
Loading…
Reference in New Issue