fix: add install_redis.sh and object cache scripts to onInstall deployment

main
Anthony 2026-02-28 16:18:50 +08:00
parent 0d40aa4f4b
commit 3f2ed3c8f3
1 changed files with 6 additions and 0 deletions

View File

@ -46,6 +46,12 @@ onInstall:
- if [ ! -f manage_litespeed.php ]; then echo "Failed to download manage_litespeed.php"; exit 1; fi - if [ ! -f manage_litespeed.php ]; then echo "Failed to download manage_litespeed.php"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/check_redis.php - curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/check_redis.php
- if [ ! -f check_redis.php ]; then echo "Failed to download check_redis.php"; exit 1; fi - if [ ! -f check_redis.php ]; then echo "Failed to download check_redis.php"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/install_redis.sh
- if [ ! -f install_redis.sh ]; then echo "Failed to download install_redis.sh"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/configure_litespeed_plugin_object_cache.sh
- if [ ! -f configure_litespeed_plugin_object_cache.sh ]; then echo "Failed to download configure_litespeed_plugin_object_cache.sh"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/configure_litespeed_redis_object_cache.sh
- if [ ! -f configure_litespeed_redis_object_cache.sh ]; then echo "Failed to download configure_litespeed_redis_object_cache.sh"; exit 1; fi
- curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_metrics.sh - curl -OL https://deploy.mightybox.io/tony/mb-admin/raw/branch/main/scripts/litespeed_metrics.sh
- if [ ! -f litespeed_metrics.sh ]; then echo "Failed to download litespeed_metrics.sh"; exit 1; fi - if [ ! -f litespeed_metrics.sh ]; then echo "Failed to download litespeed_metrics.sh"; exit 1; fi
- chmod +x *.php *.sh - chmod +x *.php *.sh