From 9a9b6cf21b0d302669d081ec37c3e1ce4c730df4 Mon Sep 17 00:00:00 2001 From: Stefan Pejcic Date: Mon, 7 Apr 2025 11:51:56 +0200 Subject: [PATCH] Update install.sh --- install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2ec83535..aab43a77 100644 --- a/install.sh +++ b/install.sh @@ -182,7 +182,11 @@ get_server_ipv4(){ set_version_to_install(){ 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 }