← back to AbramsOS
scripts/arm-reviews.sh
17 lines
#!/bin/bash
# Arm the AbramsOS Reviews posting edge: set the live flag + absolute openclaw path,
# then restart. Arming posts NOTHING on its own — per-item approve + content-seal +
# confirm still gate every send, reviews return needs_verify (you submit in Chrome).
set -euo pipefail
cd ~/Projects/AbramsOS
grep -q '^REVIEWS_EXECUTORS_LIVE=' .env \
&& sed -i '' 's/^REVIEWS_EXECUTORS_LIVE=.*/REVIEWS_EXECUTORS_LIVE=1/' .env \
|| echo 'REVIEWS_EXECUTORS_LIVE=1' >> .env
grep -q '^OPENCLAW_BIN=' .env \
&& sed -i '' 's#^OPENCLAW_BIN=.*#OPENCLAW_BIN=/Users/macstudio3/.npm-global/bin/openclaw#' .env \
|| echo 'OPENCLAW_BIN=/Users/macstudio3/.npm-global/bin/openclaw' >> .env
pm2 restart abramsos >/dev/null 2>&1
sleep 2
curl -s -o /dev/null -w 'armed http=%{http_code}\n' http://127.0.0.1:9774/healthz
echo "reviews_executors_live=$(grep -m1 '^REVIEWS_EXECUTORS_LIVE=' .env | cut -d= -f2-)"