From 03df9d1eaf4920908a3b1ff9b33c70b2792ee9d7 Mon Sep 17 00:00:00 2001 From: ArchemedIan <105951210+ArchemedIan@users.noreply.github.com> Date: Sat, 2 Sep 2023 19:57:53 -0400 Subject: [PATCH] Update create_lxc.sh --- ct/create_lxc.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 3987b067..5f4bd4a4 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -142,11 +142,11 @@ msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage." if [ "$arm64ct" = "yes" ]; then - msg_info "Arm64 Detected" - msg_info "Downloading LXC Template $PCT_OSTYPE $PCT_OSVERSION" + msg_info "Downloading And Building LXC Template for Arm64 $PCT_OSTYPE $PCT_OSVERSION" sudo pvesm status | grep ctgrabtmp && pvesm remove ctgrabtmp pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp bash <(curl -s https://raw.githubusercontent.com/ArchemedIan/Proxmox-Arm64-Container-Fetcher/main/pimox_image_fetcher.sh) ${PCT_OSTYPE} ${PCT_OSVERSION:-} default /tmp/ctgrabtmp/template/cache 1 > /dev/null + msg_ok "Template Built" TEMPLATE_SEARCH=${PCT_OSTYPE}-${PCT_OSVERSION:-} mapfile -t TEMPLATES < <(ls -l /tmp/ctgrabtmp/template/cache | sed -n "s/.*\($TEMPLATE_SEARCH.*\)/\1/p" | sort -t - -k 2 -V) [ ${#TEMPLATES[@]} -gt 0 ] || exit "Unable to find a template when searching for '$TEMPLATE_SEARCH'."