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.
This commit is contained in:
parent
eecd5744e0
commit
b2c5944a02
1 changed files with 7 additions and 0 deletions
|
|
@ -46,6 +46,13 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
[ $# -ge 1 ] || die "usage: $0 ENVFILE [RELEASE_TARBALL]"
|
[ $# -ge 1 ] || die "usage: $0 ENVFILE [RELEASE_TARBALL]"
|
||||||
load_env "$1"
|
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:-}"
|
RELEASE_TARBALL="${2:-}"
|
||||||
|
|
||||||
# The label this script writes into the files it GENERATES (/etc/fly/fly.env,
|
# The label this script writes into the files it GENERATES (/etc/fly/fly.env,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue