Subsequently commited on
Commit
024ffcf
·
verified ·
1 Parent(s): 1f0834a

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -2
entrypoint.sh CHANGED
@@ -2,6 +2,15 @@
2
  # OpenClaw HF Spaces - Production Entrypoint
3
  # Storage: HF Storage Bucket at /data (100 GB persistent)
4
 
 
 
 
 
 
 
 
 
 
5
  # ----------------------------------------------------------------
6
  # Logging
7
  # ----------------------------------------------------------------
@@ -11,8 +20,6 @@ warn() { echo "[$(ts)] [entrypoint] WARN: $*"; }
11
 
12
  # ----------------------------------------------------------------
13
  # Storage: resolve OPENCLAW_HOME
14
- # Prefer /data (HF Storage Bucket). Fall back to /home/user.
15
- # Retry up to 5s in case the bucket mount is slightly delayed.
16
  # ----------------------------------------------------------------
17
  OPENCLAW_HOME=/home/user
18
  mkdir -p /home/user/.openclaw
 
2
  # OpenClaw HF Spaces - Production Entrypoint
3
  # Storage: HF Storage Bucket at /data (100 GB persistent)
4
 
5
+ # ── Fix: Telegram DNS resolution on restricted HF nodes ──
6
+ # Hardcode Telegram API IPs to bypass DNS failures
7
+ {
8
+ echo "149.154.167.51 api.telegram.org"
9
+ echo "149.154.167.220 api.telegram.org"
10
+ echo "91.108.56.130 api.telegram.org"
11
+ } >> /etc/hosts 2>/dev/null || true
12
+ echo "[entrypoint] Telegram DNS fix applied"
13
+
14
  # ----------------------------------------------------------------
15
  # Logging
16
  # ----------------------------------------------------------------
 
20
 
21
  # ----------------------------------------------------------------
22
  # Storage: resolve OPENCLAW_HOME
 
 
23
  # ----------------------------------------------------------------
24
  OPENCLAW_HOME=/home/user
25
  mkdir -p /home/user/.openclaw