nixos: ops-data.sh starts no apps on a rehearsal host
All checks were successful
nixos / nixos (push) Successful in 33s
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:
parent
3aca8a85a3
commit
5742e06332
1 changed files with 8 additions and 0 deletions
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue