From 59c90c8bc6a9c88f5e097563edc45313d50078e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D1=84=D1=8B=D1=80=D0=B0=D1=82=20=D1=91=D0=B7=D0=B4=D1=8D?= =?UTF-8?q?=D0=BD?= <31664778+fir4tozden@users.noreply.github.com> Date: Sun, 22 Feb 2026 01:31:33 +0300 Subject: [PATCH] fix: get latest version --- apps/website/public/install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apps/website/public/install.sh b/apps/website/public/install.sh index 1bed8810..e52b58a1 100644 --- a/apps/website/public/install.sh +++ b/apps/website/public/install.sh @@ -16,9 +16,7 @@ detect_version() { echo "Detecting latest stable version from GitHub..." >&2 # Try to get latest release from GitHub by following redirects - version=$(curl -fsSL -o /dev/null -w '%{url_effective}\n' \ - https://github.com/dokploy/dokploy/releases/latest 2>/dev/null | \ - sed 's#.*/tag/##') + version=$(curl -s https://api.github.com/repos/dokploy/dokploy/releases/latest | grep "\"tag_name\":" | cut -d "\"" -f 4) # Fallback to latest tag if detection fails if [ -z "$version" ]; then @@ -361,4 +359,4 @@ if [ "$1" = "update" ]; then update_dokploy else install_dokploy -fi \ No newline at end of file +fi