Update build.func
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled
This commit is contained in:
parent
09c2308b35
commit
bcddaaba41
@ -1529,7 +1529,6 @@ ensure_storage_selection_for_vars_file() {
|
||||
tpl=$(grep -E '^var_template_storage=' "$vf" | cut -d= -f2-)
|
||||
ct=$(grep -E '^var_container_storage=' "$vf" | cut -d= -f2-)
|
||||
|
||||
# Wenn beide Werte schon existieren → übernehmen
|
||||
if [[ -n "$tpl" && -n "$ct" ]]; then
|
||||
TEMPLATE_STORAGE="$tpl"
|
||||
CONTAINER_STORAGE="$ct"
|
||||
@ -1537,14 +1536,12 @@ ensure_storage_selection_for_vars_file() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
# --- Erstmalige Auswahl: beide Abfragen ---
|
||||
select_storage template
|
||||
local tpl_sel="$STORAGE_RESULT"
|
||||
|
||||
select_storage container
|
||||
local ct_sel="$STORAGE_RESULT"
|
||||
|
||||
# --- Zusammenfassung + Nachfrage ---
|
||||
if whiptail --backtitle "Community Scripts" --title "Default Storage" \
|
||||
--yesno "Template-Storage --> $tpl_sel\nContainer-Storage --> $ct_sel\n\nSave as global defaults?" \
|
||||
12 70; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user