Update create_lxc.sh

This commit is contained in:
CanbiZ 2025-07-01 15:12:02 +02:00
parent 633a22361e
commit e272e5d01e

View File

@ -195,21 +195,22 @@ if [[ -f "$DEFAULT_FILE" ]]; then
fi fi
else else
# TEMPLATE STORAGE SELECTION # TEMPLATE STORAGE SELECTION
# Template Storage
if ! TEMPLATE_STORAGE=$(select_storage template); then if ! TEMPLATE_STORAGE=$(select_storage template); then
[[ $? -eq 202 ]] && { [[ $? -eq 202 ]] && {
msg_error "Template Storage selection cancelled by user. Exiting cleanly." msg_error "Template Storage selection cancelled by user. Exiting."
exit 202 kill -INT $$
} }
msg_error "Unexpected error during template storage selection." msg_error "Unexpected error during template storage selection."
exit 1 exit 1
fi fi
msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage."
# CONTAINER STORAGE SELECTION # Container Storage
if ! CONTAINER_STORAGE=$(select_storage container); then if ! CONTAINER_STORAGE=$(select_storage container); then
[[ $? -eq 202 ]] && { [[ $? -eq 202 ]] && {
msg_error "Container Storage selection cancelled by user. Exiting cleanly." msg_error "Container Storage selection cancelled by user. Exiting."
exit 202 kill -INT $$
} }
msg_error "Unexpected error during container storage selection." msg_error "Unexpected error during container storage selection."
exit 1 exit 1