27 lines
839 B
Bash
Executable File
27 lines
839 B
Bash
Executable File
#!/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."
|