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