Update build.func

This commit is contained in:
CanbiZ 2025-09-16 14:50:57 +02:00
parent 47d3048115
commit 86186a5dbd

View File

@ -1704,10 +1704,12 @@ storage_settings_menu() {
case "$choice" in case "$choice" in
1) 1)
check_storage_or_prompt "/usr/local/community-scripts/default.vars" check_storage_or_prompt "/usr/local/community-scripts/default.vars"
_echo_storage_summary "/usr/local/community-scripts/default.vars"
;; ;;
2) 2)
if [ -f "$(get_app_defaults_path)" ]; then if [ -f "$(get_app_defaults_path)" ]; then
check_storage_or_prompt "$(get_app_defaults_path)" check_storage_or_prompt "$(get_app_defaults_path)"
_echo_storage_summary "$(get_app_defaults_path)"
fi fi
;; ;;
3) 3)
@ -1716,6 +1718,18 @@ storage_settings_menu() {
esac esac
} }
# --- Hilfsfunktion nur für Storage-Ausgabe ---
_echo_storage_summary() {
local vars_file="$1"
local ct_store tpl_store
ct_store=$(awk -F= '/^var_container_storage=/ {print $2; exit}' "$vars_file")
tpl_store=$(awk -F= '/^var_template_storage=/ {print $2; exit}' "$vars_file")
echo -e "\n${INFO}${BOLD}${DGN}Storage settings from ${vars_file}:${CL}"
echo -e " 📦 Container Storage: ${BGN}${ct_store:-<unset>}${CL}"
echo -e " 📦 Template Storage: ${BGN}${tpl_store:-<unset>}${CL}\n"
}
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# check_container_resources() # check_container_resources()
# #