feat: prompt for bootstrap enrollment authorization
This commit is contained in:
parent
262fa88057
commit
f7f8e93c30
@ -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 \
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user