#!/usr/bin/env bash # install-backup-freshness-timer.sh — install/refresh the daily backup-freshness # alert as a systemd USER timer on nh3-dev (the only host with SSH to all backup # stores + althing-cli). Idempotent; re-run after editing the wrapper/check. # Requires linger (loginctl enable-linger lkraven) so it fires without a login. set -euo pipefail UNIT_DIR="$HOME/.config/systemd/user" REPO=/home/lkraven/development/eshpfi-management mkdir -p "$UNIT_DIR" cat > "$UNIT_DIR/backup-freshness.service" < "$UNIT_DIR/backup-freshness.timer" <