From 64917e4a813ca5314fc17afdffbd3b205dda5183 Mon Sep 17 00:00:00 2001 From: "Alice (OpenClaw)" Date: Wed, 13 May 2026 16:57:52 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20openclawtest=20PoC=20refresh=20sc?= =?UTF-8?q?ript=20/=20=E6=96=B0=E5=A2=9E=20openclawtest=20PoC=20refresh=20?= =?UTF-8?q?=E8=85=B3=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/refresh-openclawtest-poc.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 scripts/refresh-openclawtest-poc.sh diff --git a/scripts/refresh-openclawtest-poc.sh b/scripts/refresh-openclawtest-poc.sh new file mode 100755 index 0000000..dcf6610 --- /dev/null +++ b/scripts/refresh-openclawtest-poc.sh @@ -0,0 +1,26 @@ +#!/usr/bin/env bash +set -euo pipefail + +OPENCLAWTEST_HOME="/home/openclawtest" +OPENCLAW_DIST="${OPENCLAWTEST_HOME}/.nvm/versions/node/v22.22.2/lib/node_modules/openclaw/dist" +OPENCLAW_STATE_DIR="${OPENCLAWTEST_HOME}/.openclaw" + +echo "== refresh openclawtest PoC ==" + +sudo bash "$(dirname "$0")/apply-openclaw-poc-patch.sh" "${OPENCLAW_DIST}" + +sudo -u openclawtest -H bash -lc ' + export XDG_RUNTIME_DIR=/run/user/1001 + export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus + export OPENCLAW_STATE_DIR="$HOME/.openclaw" + export NVM_DIR="$HOME/.nvm" + . "$NVM_DIR/nvm.sh" + nvm use 22 >/dev/null + openclaw gateway restart >/tmp/rec-restart-live.out 2>/tmp/rec-restart-live.err + sleep 4 + openclaw gateway status --json +' + +echo +echo "PoC refresh complete." +echo "Next: use verify-openclaw-poc.sh against the live state/dist paths."