Update install.sh

This commit is contained in:
Stefan Pejcic 2025-06-05 20:43:32 +02:00 committed by GitHub
parent d69accaa56
commit 22ce8d15e5
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)
# Author: Stefan Pejcic <stefan@pejcic.rs>
# Created: 11.07.2023
# Last Modified: 04.06.2025
# Last Modified: 06.06.2025
#
################################################################################
@ -182,7 +182,7 @@ set_version_to_install(){
PANEL_VERSION=$(echo "$response" | grep -o '"name":"[^"]*"' | head -n 1 | sed 's/"name":"\([^"]*\)"/\1/')
fi
if [[ ! "$PANEL_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
PANEL_VERSION="1.3.6" # fallback if hub.docker.com unreachable
PANEL_VERSION="1.3.7" # fallback if hub.docker.com unreachable
fi
fi
}