From f7f8e93c3021dc3b58571f0d5a132d1c5eb47e93 Mon Sep 17 00:00:00 2001 From: Thomas Stallinger Date: Tue, 14 Jul 2026 13:44:31 +0200 Subject: [PATCH] feat: prompt for bootstrap enrollment authorization --- scripts/modules/12_enrollment_auth.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/modules/12_enrollment_auth.sh b/scripts/modules/12_enrollment_auth.sh index f8d5525..824cce9 100755 --- a/scripts/modules/12_enrollment_auth.sh +++ b/scripts/modules/12_enrollment_auth.sh @@ -35,7 +35,15 @@ prepare_runtime_directory() { store_bootstrap_authorization() { local activation_code - activation_code="${TUXFLOTTE_ACTIVATION_CODE:-LAB-2026-START}" + if [[ -n "${TUXFLOTTE_ACTIVATION_CODE:-}" ]]; then + activation_code="${TUXFLOTTE_ACTIVATION_CODE}" + else + printf '\n' + read -r -p "Temporären Aktivierungscode eingeben: " activation_code + fi + + [[ -n "${activation_code}" ]] || + fatal "Es wurde kein Aktivierungscode angegeben." jq \ --null-input \