Update install.sh

This commit is contained in:
Stefan Pejcic 2025-05-17 17:43:46 +02:00 committed by GitHub
parent a28dcdf2aa
commit 0dacb243ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
# Usage: bash <(curl -sSL https://openpanel.org) # Usage: bash <(curl -sSL https://openpanel.org)
# Author: Stefan Pejcic <stefan@pejcic.rs> # Author: Stefan Pejcic <stefan@pejcic.rs>
# Created: 11.07.2023 # Created: 11.07.2023
# Last Modified: 16.05.2025 # Last Modified: 17.05.2025
# #
################################################################################ ################################################################################
@ -183,7 +183,7 @@ set_version_to_install(){
response=$(curl -4 -s "https://hub.docker.com/v2/repositories/openpanel/openpanel-ui/tags") response=$(curl -4 -s "https://hub.docker.com/v2/repositories/openpanel/openpanel-ui/tags")
PANEL_VERSION=$(echo $response | jq -r '.results[0].name') PANEL_VERSION=$(echo $response | jq -r '.results[0].name')
if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
PANEL_VERSION="1.2.9" # fallback if hub.docker.com unreachable to first tag that supports arm PANEL_VERSION="1.3.0" # fallback if hub.docker.com unreachable to first tag that supports arm
fi fi
fi fi
} }