Update instant login

main
Anthony 2025-08-27 00:35:28 +08:00
parent 2109f5b423
commit 7f07384405
1 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
type: update type: update
id: mbadmin id: mbadmin
version: '2.6' version: '2.7'
name: MB Administration name: MB Administration
description: Mighty Box Control Panel Administration description: Mighty Box Control Panel Administration
@ -27,6 +27,9 @@ onInstall:
- if [ ! -f clear_opcache.php ]; then echo "Failed to download clear_opcache.php"; exit 1; fi - if [ ! -f clear_opcache.php ]; then echo "Failed to download clear_opcache.php"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/update_opcache_settings.sh - curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/update_opcache_settings.sh
- if [ ! -f update_opcache_settings.sh ]; then echo "Failed to download update_opcache_settings.sh"; exit 1; fi - if [ ! -f update_opcache_settings.sh ]; then echo "Failed to download update_opcache_settings.sh"; exit 1; fi
# Download MariaDB root password reset script
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/dbreset.sh
- if [ ! -f dbreset.sh ]; then echo "Failed to download dbreset.sh"; exit 1; fi
# Download WP search-replace wrapper script with verification # Download WP search-replace wrapper script with verification
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/wp-search-replace.sh - curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/wp-search-replace.sh
- if [ ! -f wp-search-replace.sh ]; then echo "Failed to download wp-search-replace.sh"; exit 1; fi - if [ ! -f wp-search-replace.sh ]; then echo "Failed to download wp-search-replace.sh"; exit 1; fi
@ -1007,10 +1010,11 @@ actions:
- cmd[cp]: - cmd[cp]:
user: root user: root
commands: commands:
- bash /home/litespeed/mbmanager/scripts/dbreset.sh
- bash /home/litespeed/mbmanager/pma-gateway/create_pma_gateway.sh --validity="${settings.validity}" $( [ -n "${settings.slug}" ] && echo --slug="${settings.slug}") - bash /home/litespeed/mbmanager/pma-gateway/create_pma_gateway.sh --validity="${settings.validity}" $( [ -n "${settings.slug}" ] && echo --slug="${settings.slug}")
- return: - return:
type: info type: info
message: "Gateway URL: ${response.out}" message: "${response.out}"
responses: responses:
enableSuccess: enableSuccess: