stock.exdev.co.kr로 접속 url 변경

This commit is contained in:
Macbook
2026-06-17 10:00:34 +09:00
parent 58cf1e1ec7
commit 37533764ee
46 changed files with 354 additions and 75 deletions
+7 -3
View File
@@ -3,7 +3,7 @@
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
BASE_URL="${DESKTOP_UPDATE_BASE_URL:-https://exdev.co.kr/desktop/updates}"
BASE_URL="${DESKTOP_UPDATE_BASE_URL:-https://stock.exdev.co.kr/desktop/updates}"
FAIL=0
ok() { echo "[OK] $*"; }
@@ -43,8 +43,12 @@ fi
if curl -sf "${BASE_URL}/latest.json" >/dev/null 2>&1; then
REMOTE="$(curl -sf "${BASE_URL}/latest.json" 2>/dev/null || true)"
if [[ -z "$REMOTE" || "${#REMOTE}" -lt 8 ]]; then
echo "[FAIL] remote latest.json empty (0-byte)"
exit 1
HTTP_BASE="$(printf '%s' "$BASE_URL" | sed 's|^https://|http://|')"
HTTP_REMOTE="$(curl -sf "${HTTP_BASE}/latest.json" 2>/dev/null || true)"
if [[ -n "$HTTP_REMOTE" && "${#HTTP_REMOTE}" -ge 8 ]]; then
fail "remote HTTPS latest.json empty — HTTP는 정상 (${#HTTP_REMOTE}B). Caddy→gc-frontend:80 역프록시 점검"
fi
fail "remote latest.json empty (0-byte)"
fi
node -e "JSON.parse(process.argv[1])" "$REMOTE" && ok "remote latest.json ${BASE_URL}/latest.json"
else