Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
Some checks failed
Bump build.func Revision / bump-revision (push) Has been cancelled

This commit is contained in:
CanbiZ 2025-09-24 09:29:42 +02:00
commit 09055bf73e

View File

@ -1529,6 +1529,7 @@ 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"
@ -1536,12 +1537,14 @@ 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