Merge branch 'main' of https://github.com/community-scripts/ProxmoxVED
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:
commit
09055bf73e
@ -1529,6 +1529,7 @@ ensure_storage_selection_for_vars_file() {
|
|||||||
tpl=$(grep -E '^var_template_storage=' "$vf" | cut -d= -f2-)
|
tpl=$(grep -E '^var_template_storage=' "$vf" | cut -d= -f2-)
|
||||||
ct=$(grep -E '^var_container_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
|
if [[ -n "$tpl" && -n "$ct" ]]; then
|
||||||
TEMPLATE_STORAGE="$tpl"
|
TEMPLATE_STORAGE="$tpl"
|
||||||
CONTAINER_STORAGE="$ct"
|
CONTAINER_STORAGE="$ct"
|
||||||
@ -1536,12 +1537,14 @@ ensure_storage_selection_for_vars_file() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# --- Erstmalige Auswahl: beide Abfragen ---
|
||||||
select_storage template
|
select_storage template
|
||||||
local tpl_sel="$STORAGE_RESULT"
|
local tpl_sel="$STORAGE_RESULT"
|
||||||
|
|
||||||
select_storage container
|
select_storage container
|
||||||
local ct_sel="$STORAGE_RESULT"
|
local ct_sel="$STORAGE_RESULT"
|
||||||
|
|
||||||
|
# --- Zusammenfassung + Nachfrage ---
|
||||||
if whiptail --backtitle "Community Scripts" --title "Default Storage" \
|
if whiptail --backtitle "Community Scripts" --title "Default Storage" \
|
||||||
--yesno "Template-Storage --> $tpl_sel\nContainer-Storage --> $ct_sel\n\nSave as global defaults?" \
|
--yesno "Template-Storage --> $tpl_sel\nContainer-Storage --> $ct_sel\n\nSave as global defaults?" \
|
||||||
12 70; then
|
12 70; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user