- scripts/ops-report.sh builds a simple daily report (app, website, deps, security, weekly scan); --send DMs it to the two admins from src/lib/admins.ts via NIP-17 (scripts/send-ops-report.ts), sender = app identity. - Delivery discovers kind-10050 inboxes + NIP-65 write relays and always includes the community relay; OPS_DRY_RUN=1 previews without publishing. - scripts/send-ops-alert.sh sends short alerts; wired into auto-deploy (preflight/smoke), update-deps (full+fallback failure) and ops-health --notify. - skatespots-ops-report.timer daily 07:00 + installer. - Signer moved into the 0600 zsp.env; old history copies removed.
12 lines
441 B
Bash
Executable file
12 lines
441 B
Bash
Executable file
#!/usr/bin/env bash
|
|
#
|
|
# Install the daily plain-English ops report timer.
|
|
set -euo pipefail
|
|
SRC="$(cd "$(dirname "$0")/systemd" && pwd)"
|
|
DEST="$HOME/.config/systemd/user"
|
|
mkdir -p "$DEST"
|
|
cp "$SRC/skatespots-ops-report.service" "$DEST/"
|
|
cp "$SRC/skatespots-ops-report.timer" "$DEST/"
|
|
systemctl --user daemon-reload
|
|
systemctl --user enable --now skatespots-ops-report.timer
|
|
systemctl --user list-timers skatespots-ops-report.timer --no-pager
|