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)