diff --git a/install b/install index 813cc02..10821c8 100755 --- a/install +++ b/install @@ -1,6 +1,6 @@ #!/usr/bin/env bash # Public release repository: -# http://octopus.51zxtx.com:3000/fourbroad/octopus-release +# https://eightarms.net/fourbroad/octopus-release set -euo pipefail APP=octopus @@ -22,8 +22,8 @@ Options: --no-modify-path Don't modify shell config files (.zshrc, .bashrc, etc.) Examples: - curl -fsSL https://octopus.51zxtx.com/install | bash - curl -fsSL https://octopus.51zxtx.com/install | bash -s -- --version 1.0.180 + curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash + curl -fsSL https://eightarms.net/fourbroad/octopus-release/raw/branch/main/install | bash -s -- --version 1.0.180 ./install --binary /path/to/octopus EOF } @@ -183,24 +183,24 @@ else fi if [ -z "$requested_version" ]; then - specific_version=$(curl -s "${GITEA_API_URL:-http://octopus.51zxtx.com:3000/api/v1}/repos/fourbroad/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p') + specific_version=$(curl -s "${GITEA_API_URL:-https://eightarms.net/api/v1}/repos/fourbroad/octopus-release/releases?limit=1" | sed -n 's/.*"tag_name": *"v\([^"]*\)".*/\1/p') if [[ $? -ne 0 || -z "$specific_version" ]]; then echo -e "${RED}Failed to fetch version information${NC}" exit 1 fi - url="${OCTOPUS_DOWNLOAD_BASE:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/download/v${specific_version}/$filename" + url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${specific_version}/$filename" else # Strip leading 'v' if present requested_version="${requested_version#v}" - url="${OCTOPUS_DOWNLOAD_BASE:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/download/v${requested_version}/$filename" + url="${OCTOPUS_DOWNLOAD_BASE:-https://eightarms.net}/fourbroad/octopus-release/releases/download/v${requested_version}/$filename" specific_version=$requested_version # Verify the release exists before downloading - http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases/tag/v${requested_version}") + http_status=$(curl -sI -o /dev/null -w "%{http_code}" "${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases/tag/v${requested_version}") if [ "$http_status" = "404" ]; then echo -e "${RED}Error: Release v${requested_version} not found${NC}" - echo -e "${MUTED}Available releases: ${GITEA_URL:-http://octopus.51zxtx.com:3000}/fourbroad/octopus-release/releases${NC}" + echo -e "${MUTED}Available releases: ${GITEA_URL:-https://eightarms.net}/fourbroad/octopus-release/releases${NC}" exit 1 fi fi @@ -456,6 +456,6 @@ echo -e "" echo -e "cd ${MUTED}# Open directory${NC}" echo -e "octopus ${MUTED}# Run command${NC}" echo -e "" -echo -e "${MUTED}For more information visit ${NC}https://octopus.51zxtx.com/docs" +echo -e "${MUTED}For more information visit ${NC}https://eightarms.net/fourbroad/octopus-release" echo -e "" echo -e ""