diff --git a/nixos/migration/ops-data.sh b/nixos/migration/ops-data.sh index 557f1cf..c5e809a 100755 --- a/nixos/migration/ops-data.sh +++ b/nixos/migration/ops-data.sh @@ -90,6 +90,14 @@ forgejo-admin regenerate hooks forgejo-admin regenerate keys 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 [ -f "/opt/$app/docker-compose.yml" ] || continue echo " $app"