chore: switch repository links to gitea

This commit is contained in:
kone
2026-06-04 01:21:54 +08:00
parent a1b75400a6
commit 4d8f06cbf1
32 changed files with 194 additions and 179 deletions
+6 -6
View File
@@ -20,8 +20,8 @@ YELLOW='\033[1;33m'
BLUE='\033[0;34m'
NC='\033[0m' # No Color
# GitHub raw content base URL
GITHUB_RAW_URL="https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy"
# Gitea raw content base URL
REPO_RAW_URL="http://git.jianshixingqiu.com/kgod/sub2api/raw/branch/main/deploy"
# Print colored message
print_info() {
@@ -78,9 +78,9 @@ main() {
# Download docker-compose.local.yml and save as docker-compose.yml
print_info "Downloading docker-compose.yml..."
if command_exists curl; then
curl -sSL "${GITHUB_RAW_URL}/docker-compose.local.yml" -o docker-compose.yml
curl -sSL "${REPO_RAW_URL}/docker-compose.local.yml" -o docker-compose.yml
elif command_exists wget; then
wget -q "${GITHUB_RAW_URL}/docker-compose.local.yml" -O docker-compose.yml
wget -q "${REPO_RAW_URL}/docker-compose.local.yml" -O docker-compose.yml
else
print_error "Neither curl nor wget is installed. Please install one of them."
exit 1
@@ -90,9 +90,9 @@ main() {
# Download .env.example
print_info "Downloading .env.example..."
if command_exists curl; then
curl -sSL "${GITHUB_RAW_URL}/.env.example" -o .env.example
curl -sSL "${REPO_RAW_URL}/.env.example" -o .env.example
else
wget -q "${GITHUB_RAW_URL}/.env.example" -O .env.example
wget -q "${REPO_RAW_URL}/.env.example" -O .env.example
fi
print_success "Downloaded .env.example"