This commit is contained in:
CanbiZ 2025-06-25 14:44:35 +02:00
parent 0bd3ac1e87
commit 62baa61680
2 changed files with 3 additions and 2 deletions

View File

@ -206,6 +206,7 @@ TEMPLATE_STORAGE=$tmpl
CONTAINER_STORAGE=$cont CONTAINER_STORAGE=$cont
EOF EOF
msg_ok "Default Storage set: Template=${BL}$tmpl${CL} ${GN}|${CL} Container=${BL}$cont${CL}"
whiptail --backtitle "[dev] Proxmox VE Helper Scripts" \ whiptail --backtitle "[dev] Proxmox VE Helper Scripts" \
--msgbox "Default Storage set:\n\nTemplate: $tmpl\nContainer: $cont" 10 58 --msgbox "Default Storage set:\n\nTemplate: $tmpl\nContainer: $cont" 10 58
} }

View File

@ -162,10 +162,10 @@ DEFAULT_FILE="/usr/local/community-scripts/default_storage"
if [[ -f "$DEFAULT_FILE" ]]; then if [[ -f "$DEFAULT_FILE" ]]; then
source "$DEFAULT_FILE" source "$DEFAULT_FILE"
if [[ -n "$TEMPLATE_STORAGE" && -n "$CONTAINER_STORAGE" ]]; then if [[ -n "$TEMPLATE_STORAGE" && -n "$CONTAINER_STORAGE" ]]; then
msg_info "Using default storage configuration" msg_info "Using default storage configuration from: $DEFAULT_FILE"
msg_ok "Template Storage: ${BL}$TEMPLATE_STORAGE${CL} ${GN}|${CL} Container Storage: ${BL}$CONTAINER_STORAGE${CL}" msg_ok "Template Storage: ${BL}$TEMPLATE_STORAGE${CL} ${GN}|${CL} Container Storage: ${BL}$CONTAINER_STORAGE${CL}"
else else
msg_warn "Default storage file found but incomplete falling back to manual selection" msg_warn "Default storage file exists but is incomplete falling back to manual selection"
TEMPLATE_STORAGE=$(select_storage template) TEMPLATE_STORAGE=$(select_storage template)
msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage."
CONTAINER_STORAGE=$(select_storage container) CONTAINER_STORAGE=$(select_storage container)