From 7f073844053f77fa0010df14f7446eec88a9e3ea Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 27 Aug 2025 00:35:28 +0800 Subject: [PATCH] Update instant login --- mbadmin.jps | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mbadmin.jps b/mbadmin.jps index 8e4836c..d72994d 100644 --- a/mbadmin.jps +++ b/mbadmin.jps @@ -1,6 +1,6 @@ type: update id: mbadmin -version: '2.6' +version: '2.7' name: MB 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 - 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 + # 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 - 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 @@ -1007,10 +1010,11 @@ actions: - cmd[cp]: user: root 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}") - return: type: info - message: "Gateway URL: ${response.out}" + message: "${response.out}" responses: enableSuccess: