binky-control/scripts/railiance-rhythm/install-on-railiance.sh
tegwick c3ea150971
Some checks failed
Work Records / validate (push) Has been cancelled
BINKY-WP-0004 finished: retire workstation cron, Railiance rhythm timers
Complete T06 cutover: remove binky rhythm bridge crontab, install
scripts/railiance-rhythm systemd user timers on railiance01 (Europe/Berlin),
document residual continuous-intake gaps as BINKY-WP-0006. Three completion
event types verified (daily_brief, mail_intake on Railiance, weekly_review).
DEC-2026-003 marked resolved/executed.
2026-07-21 23:51:43 +02:00

22 lines
996 B
Bash
Executable file

#!/usr/bin/env bash
# Install host-side rhythm timers on railiance01 (user systemd).
# Run ON railiance01 from a fresh binky-control checkout:
# ./scripts/railiance-rhythm/install-on-railiance.sh
set -euo pipefail
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
UNIT_DIR="${HOME}/.config/systemd/user"
mkdir -p "${UNIT_DIR}"
chmod +x "${ROOT}/scripts/railiance-rhythm/"*.sh
for u in binky-rhythm-daily binky-rhythm-mail binky-rhythm-review; do
cp -f "${ROOT}/scripts/railiance-rhythm/systemd/${u}.service" "${UNIT_DIR}/"
cp -f "${ROOT}/scripts/railiance-rhythm/systemd/${u}.timer" "${UNIT_DIR}/"
done
systemctl --user daemon-reload
systemctl --user enable --now binky-rhythm-daily.timer
systemctl --user enable --now binky-rhythm-mail.timer
systemctl --user enable --now binky-rhythm-review.timer
systemctl --user list-timers --all | grep binky-rhythm || true
echo "Installed. Logs: ~/.cache/binky-control/rhythm/"
echo "Agentic daily/review require: claude CLI on PATH. mail-scan does not."