Update install.sh

This commit is contained in:
Stefan Pejcic 2025-05-06 19:00:02 +02:00 committed by GitHub
parent ec195acbd6
commit bcc7e99c02
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,7 +183,7 @@ set_version_to_install(){
response=$(curl -4 -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.2" # fallback if hub.docker.com unreachable!
PANEL_VERSION="1.2.7" # fallback if hub.docker.com unreachable!
fi
fi
}