Elysiadev11 commited on
Commit
577eec6
·
verified ·
1 Parent(s): 77dc4cf

Upload start-openclaw.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. start-openclaw.sh +8 -4
start-openclaw.sh CHANGED
@@ -36,11 +36,14 @@ CHROMIUM_PATH=$(find /data/.openclaw/browsers -name "chrome" -type f 2>/dev/null
36
 
37
  if [ -z "$CHROMIUM_PATH" ]; then
38
  echo ">>> Installing Chromium to persistent storage /data..."
39
- OPENCLAW_NM=$(npm root -g 2>/dev/null)/openclaw/node_modules/playwright-core/cli.js
40
- if timeout 300 node "$OPENCLAW_NM" install chromium; then
41
  echo ">>> Chromium OK"
42
  else
43
- echo ">>> WARN: Chromium install failed"
 
 
 
 
44
  fi
45
  # Re-check path after install
46
  CHROMIUM_PATH=$(find /data/.openclaw/browsers -name "chrome" -type f 2>/dev/null | head -1)
@@ -167,7 +170,8 @@ password: ${VSCODE_PASSWORD}
167
  cert: false
168
  EOF
169
 
170
- code-server --bind-addr 0.0.0.0:8443 \
 
171
  --auth password \
172
  --disable-telemetry \
173
  --disable-update-check \
 
36
 
37
  if [ -z "$CHROMIUM_PATH" ]; then
38
  echo ">>> Installing Chromium to persistent storage /data..."
39
+ if timeout 300 npx playwright install chromium; then
 
40
  echo ">>> Chromium OK"
41
  else
42
+ if timeout 300 npx playwright-core install chromium; then
43
+ echo ">>> Chromium OK (via playwright-core)"
44
+ else
45
+ echo ">>> WARN: Chromium install failed"
46
+ fi
47
  fi
48
  # Re-check path after install
49
  CHROMIUM_PATH=$(find /data/.openclaw/browsers -name "chrome" -type f 2>/dev/null | head -1)
 
170
  cert: false
171
  EOF
172
 
173
+ # Start VS Code explicit dengan PORT=8443 agar mengabaikan global PORT=7860
174
+ PORT=8443 code-server --bind-addr 0.0.0.0:8443 \
175
  --auth password \
176
  --disable-telemetry \
177
  --disable-update-check \