Updated download urls removed proxy

main
Anthony 2025-06-14 01:37:35 +08:00
parent 599aec5a70
commit 0e8943f762
2 changed files with 34 additions and 19 deletions

View File

@ -18,51 +18,51 @@ onInstall:
- mkdir -p /home/litespeed/mbmanager/scripts
# Download OPCache scripts with verification
- cd /home/litespeed/mbmanager/scripts
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/check_opcache.php
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/check_opcache.php
- if [ ! -f check_opcache.php ]; then echo "Failed to download check_opcache.php"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/toggle_opcache.php
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/toggle_opcache.php
- if [ ! -f toggle_opcache.php ]; then echo "Failed to download toggle_opcache.php"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/clear_opcache.php
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/clear_opcache.php
- if [ ! -f clear_opcache.php ]; then echo "Failed to download clear_opcache.php"; exit 1; fi
- curl -OL https://deploy-proxy.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
- chmod +x *.php *.sh
# Download WordPress Installer with path verification
- cd /home/litespeed/mbmanager
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/install-wordpress.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/install-wordpress.sh
- if [ ! -f install-wordpress.sh ]; then echo "Failed to download install-wordpress.sh"; exit 1; fi
# Download main scripts with verification
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_fetch_settings.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_fetch_settings.sh
- if [ ! -f litespeed_fetch_settings.sh ]; then echo "Failed to download litespeed_fetch_settings.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_update_settings.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_update_settings.sh
- if [ ! -f litespeed_update_settings.sh ]; then echo "Failed to download litespeed_update_settings.sh"; exit 1; fi
- chmod +x *.sh
# Download relay scripts with verification
- cd /home/litespeed/mbmanager/relay
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/check_relay_installation.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/check_relay_installation.sh
- if [ ! -f check_relay_installation.sh ]; then echo "Failed to download check_relay_installation.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/check_relay_status.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/check_relay_status.sh
- if [ ! -f check_relay_status.sh ]; then echo "Failed to download check_relay_status.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/disable_relay.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/disable_relay.sh
- if [ ! -f disable_relay.sh ]; then echo "Failed to download disable_relay.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/enable_relay.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/enable_relay.sh
- if [ ! -f enable_relay.sh ]; then echo "Failed to download enable_relay.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/flush_caches.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/flush_caches.sh
- if [ ! -f flush_caches.sh ]; then echo "Failed to download flush_caches.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/install_relay_ocp.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/install_relay_ocp.sh
- if [ ! -f install_relay_ocp.sh ]; then echo "Failed to download install_relay_ocp.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/uninstall_relay.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/relay/uninstall_relay.sh
- if [ ! -f uninstall_relay.sh ]; then echo "Failed to download uninstall_relay.sh"; exit 1; fi
- chmod +x *.sh
# Download SSL manager script with verification
- cd /home/litespeed/mbmanager/ssl-manager
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ssl_manager.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ssl_manager.sh
- if [ ! -f ssl_manager.sh ]; then echo "Failed to download ssl_manager.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ipchecker.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ipchecker.sh
- if [ ! -f ipchecker.sh ]; then echo "Failed to download ipchecker.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ssl_remover.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/ssl_remover.sh
- if [ ! -f ssl_remover.sh ]; then echo "Failed to download ssl_remover.sh"; exit 1; fi
- curl -OL https://deploy-proxy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/xmlchecker.sh
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/ssl-manager/xmlchecker.sh
- if [ ! -f xmlchecker.sh ]; then echo "Failed to download xmlchecker.sh"; exit 1; fi
- chmod +x *.sh
# Install Certbot for AlmaLinux with memory constraints
@ -649,7 +649,7 @@ actions:
- 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;
curl -o /home/litespeed/mbmanager/dbPreparation.sh https://deploy.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...";

View File

@ -1,4 +1,19 @@
<?php
// Add error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);
// Check if running from CLI
if (php_sapi_name() !== 'cli') {
echo json_encode(['status' => 'error', 'message' => 'This script must be run from CLI']);
exit(1);
}
// Check PHP version and path
echo "PHP Version: " . PHP_VERSION . "\n";
echo "PHP Binary: " . PHP_BINARY . "\n";
echo "PHP SAPI: " . php_sapi_name() . "\n";
// Check if OPCache is enabled
if (!function_exists('opcache_get_status')) {
echo json_encode(['status' => 'error', 'message' => 'OPCache is not installed']);