From ca3d486109e48908b084a76ab80d38fc8c113be9 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Wed, 10 Apr 2024 17:51:08 +1000 Subject: [PATCH] Change Debian template error from info to error --- ct/create_lxc.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 6aecf4539..82f378d09 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -150,11 +150,6 @@ msg_ok "Using ${BL}$TEMPLATE_STORAGE${CL} ${GN}for Template Storage." CONTAINER_STORAGE=$(select_storage container) || exit msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage." -# Update LXC template list -msg_info "Updating LXC Template List" -pveam update >/dev/null -msg_ok "Updated LXC Template List" - # Get LXC template string if [ $PCT_OSTYPE = debian ]; then if [ $PCT_OSVERSION = 11 ]; then @@ -190,10 +185,14 @@ if [ -d "/var/lib/vz/template/cache" ]; then fi fi else + # Update LXC template list + msg_info "Updating LXC Template List" + pveam update >/dev/null + msg_ok "Updated LXC Template List" if [ $PCT_OSTYPE = debian ]; then PCT_OSTYPE=ubuntu TEMPLATE_VARIENT=jammy - msg_info "Debian unsupported with this download method. Using Ubuntu 22.04." + msg_error "Debian unsupported with this download method. Using Ubuntu 22.04." fi TEMPLATE="$(pveam available | grep -E "arm64.*$PCT_OSTYPE-$TEMPLATE_VARIENT" | sed 's/arm64[[:space:]]*//')"