From 4f489e61831de95507206528fb00509770b3bf14 Mon Sep 17 00:00:00 2001 From: mango Date: Sun, 22 Feb 2026 20:43:22 +0800 Subject: [PATCH] chore: use jsdelivr CDN for all download URLs --- README.md | 4 ++-- install-agent.sh | 2 +- install.sh | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1af4e1c..e6dac34 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Real-time monitoring dashboard for [OpenClaw](https://github.com/openclaw/opencl ### 1. Deploy Server (Docker) ```bash -curl -fsSL https://raw.githubusercontent.com/xmg0828888/oc-monitor/main/install.sh | bash +curl -fsSL https://cdn.jsdelivr.net/gh/xmg0828888/oc-monitor@main/install.sh | bash ``` This will: @@ -35,7 +35,7 @@ This will: After server is running, install the agent on each OpenClaw node: ```bash -curl -fsSL https://raw.githubusercontent.com/xmg0828888/oc-monitor/main/install-agent.sh | bash -s -- \ +curl -fsSL https://cdn.jsdelivr.net/gh/xmg0828888/oc-monitor@main/install-agent.sh | bash -s -- \ -s http://YOUR_SERVER_IP:3800 \ -t YOUR_AUTH_TOKEN \ -n "Node Name" diff --git a/install-agent.sh b/install-agent.sh index 5ec20e4..abe4b82 100755 --- a/install-agent.sh +++ b/install-agent.sh @@ -29,7 +29,7 @@ done # Download agent echo "📦 Downloading agent..." -curl -fsSL https://raw.githubusercontent.com/xmg0828888/oc-monitor/main/agent/agent.sh -o "$AGENT" +curl -fsSL https://cdn.jsdelivr.net/gh/xmg0828888/oc-monitor@main/agent/agent.sh -o "$AGENT" chmod +x "$AGENT" # Detect init system diff --git a/install.sh b/install.sh index 1f53c23..4a00204 100755 --- a/install.sh +++ b/install.sh @@ -46,4 +46,4 @@ echo "🌐 Dashboard: http://$IP:$PORT" echo "🔑 Auth Token: $TOKEN" echo "" echo "📡 Install agent on each node:" -echo " curl -fsSL https://raw.githubusercontent.com/xmg0828888/oc-monitor/main/install-agent.sh | bash -s -- -s http://$IP:$PORT -t $TOKEN -n \"NodeName\"" +echo " curl -fsSL https://cdn.jsdelivr.net/gh/xmg0828888/oc-monitor@main/install-agent.sh | bash -s -- -s http://$IP:$PORT -t $TOKEN -n \"NodeName\""