From b2c5944a02e5bc708d827f4997364e33b0ea1cec Mon Sep 17 00:00:00 2001 From: acamilo Date: Mon, 28 Sep 2026 23:35:33 +0000 Subject: [PATCH] 05-deploy: a release with a channel refuses an empty GAME_TITLE The generated fly.env writes GAME_TITLE whether or not the env file sets it, and flybridge refuses to start on an empty one. It reads the file only at start, so the gap surfaced as dead chat at the next reboot (2026-09-28), a day after the deploy that caused it. --- infra/05-deploy.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infra/05-deploy.sh b/infra/05-deploy.sh index 061e6dd..c10d480 100644 --- a/infra/05-deploy.sh +++ b/infra/05-deploy.sh @@ -46,6 +46,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" [ $# -ge 1 ] || die "usage: $0 ENVFILE [RELEASE_TARBALL]" load_env "$1" +# flybridge refuses to start on an empty GAME_TITLE, and the generated fly.env below writes the +# variable whether or not the env file sets it. It only reads the file at start, so a missing +# value surfaced as dead chat at the next reboot, a day and a deploy later (2026-09-28). A release +# with a channel therefore needs the title before anything is touched. +if [ "$ROLE" = release ] && [ -n "${TWITCH_CHANNEL:-}" ] && [ -z "${GAME_TITLE:-}" ]; then + die "TWITCH_CHANNEL is set but GAME_TITLE is empty in $1: flybridge would refuse to start. Set GAME_TITLE (infra/env/example.env)." +fi RELEASE_TARBALL="${2:-}" # The label this script writes into the files it GENERATES (/etc/fly/fly.env,