From bc9cfd87b3e78f67b305ce06a82c1f0eab1d4df8 Mon Sep 17 00:00:00 2001 From: ArchemedIan <105951210+ArchemedIan@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:37:20 -0400 Subject: [PATCH] Update create_lxc.sh --- ct/create_lxc.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 2e32492a..3987b067 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -136,10 +136,7 @@ fi 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" + @@ -161,6 +158,11 @@ if [ "$arm64ct" = "yes" ]; then else + + # Update LXC template list + msg_info "Updating LXC Template List" + pveam update >/dev/null + msg_ok "Updated LXC Template List" # Get LXC template string TEMPLATE_SEARCH=${PCT_OSTYPE}-${PCT_OSVERSION:-} mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($TEMPLATE_SEARCH.*\)/\1/p" | sort -t - -k 2 -V)