nixos: ops-data.sh starts no apps on a rehearsal host
All checks were successful
nixos / nixos (push) Successful in 33s

A restored /opt/<app>/.env holds production credentials: vhpbot would
log in as the production bot, asxpio-monitor would probe the internet,
the apps could send mail. On a rehearsal host the script now stops
before starting them; they are started by hand, sanitized.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 07:56:10 +04:00
commit 5742e06332
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -90,6 +90,14 @@ forgejo-admin regenerate hooks
forgejo-admin regenerate keys forgejo-admin regenerate keys
echo "== App stacks: images again (Docker's image store does not carry over)" echo "== App stacks: images again (Docker's image store does not carry over)"
case "$(hostname)" in
rehearsal-*)
# Restored .env files hold production credentials: vhpbot would log
# in as the production bot, asxpio-monitor probe the internet, the
# apps send mail. Start them by hand, sanitized (MIGRATION.md rules).
echo " rehearsal host: apps NOT started"
exit 0 ;;
esac
for app in asxpio datacenterbingo blog czsk vhpbot-prod vhpbot-dev; do for app in asxpio datacenterbingo blog czsk vhpbot-prod vhpbot-dev; do
[ -f "/opt/$app/docker-compose.yml" ] || continue [ -f "/opt/$app/docker-compose.yml" ] || continue
echo " $app" echo " $app"