Files
mopac-pmo/scripts/root-rename-inbox.sh
T
mrcharles 79d93b6c49 ops(scripts): dispatch, queue gating, heartbeat, quota probe
dispatch-turn.sh (headless turn launcher with TURN_MODEL routing),
queue-after.sh (serial gate chain + quota-wall guard), pmo-heartbeat.sh
(PMO wake loop), quota-probe-then-chain.sh (post-wall relaunch).
2026-08-29 05:22:43 -05:00

20 lines
699 B
Bash
Executable File

#!/usr/bin/env bash
# root-rename-inbox.sh — rename /home/_crossfeed/inbox/founder -> inbox/rceo
# (Charles dislikes "founder" as a name for himself.) Idempotent. Root runs:
# sudo bash ~/.coordinate/scripts/root-rename-inbox.sh
set -euo pipefail
[[ $EUID -eq 0 ]] || { echo "run as root: sudo bash $0"; exit 1; }
src=/home/_crossfeed/inbox/founder
dst=/home/_crossfeed/inbox/rceo
if [[ -d $src && ! -e $dst ]]; then
mv "$src" "$dst"
elif [[ -d $dst ]]; then
echo "already renamed"
else
echo "source missing: $src"; ls -la /home/_crossfeed/inbox/; exit 1
fi
chown reachableceo:users "$dst"
chmod 3775 "$dst"
ls -ld "$dst"
echo "OK. Remind PMO to update PROTOCOL.md path references."