Update install.sh

This commit is contained in:
Stefan Pejcic 2025-04-07 11:51:56 +02:00 committed by GitHub
parent 3515c67dbf
commit 9a9b6cf21b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -182,7 +182,11 @@ get_server_ipv4(){
set_version_to_install(){ set_version_to_install(){
if [ "$CUSTOM_VERSION" = false ]; then if [ "$CUSTOM_VERSION" = false ]; then
PANEL_VERSION="1.1.8" response=$(curl -s "https://hub.docker.com/v2/repositories/openpanel/openpanel-ui/tags")
PANEL_VERSION=$(echo $response | jq -r '.results[0].name')
if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
PANEL_VERSION="1.2.0" # fallback if hub.docker.com unreachable!
fi
fi fi
} }