#!/usr/bin/env bash # Call after upgrading hacktivism packages / redeploying landings / image rebuilds. # systemd path unit watches this stamp → re-runs monitoring. set -euo pipefail STATE="${XDG_STATE_HOME:-$HOME/.local/state}/taler-hacktivism-monitoring" mkdir -p "$STATE" STAMP="$STATE/software.stamp" date -Iseconds >"$STAMP" # also record container image ids for debugging if command -v podman >/dev/null 2>&1; then { echo "# images $(date -Iseconds)" podman images --format '{{.Repository}}:{{.Tag}} {{.ID}} {{.Digest}}' 2>/dev/null | grep -i hacktivism || true podman ps --format '{{.Names}} {{.ImageID}} {{.Status}}' 2>/dev/null | grep -i hacktivism || true } >"$STATE/software-images.txt" || true fi echo "touched $STAMP"