From d942e14687aabf868adfb3a4500794d5832c1c7e Mon Sep 17 00:00:00 2001 From: ArchemedIan <105951210+ArchemedIan@users.noreply.github.com> Date: Sat, 2 Sep 2023 07:58:57 -0400 Subject: [PATCH] Update create_lxc.sh --- ct/create_lxc.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 5eb5dc39..a1b07d34 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -148,9 +148,9 @@ if [ "$arm64ct" = "yes" ]; then msg_info "Arm64 Detected" msg_info "Downloading LXC Template" pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp - echo ${PCT_OSTYPE} > /tmp/ctgrabtmp/.ostype - echo ${PCT_OSVERSION:-} > /tmp/ctgrabtmp/.osver - bash <(curl -s https://raw.githubusercontent.com/ArchemedIan/Proxmox-Arm64-Container-Fetcher/main/pimox_image_fetcher.sh) $(cat /tmp/ctgrabtmp/.ostype) $(cat /tmp/ctgrabtmp/.osver) default /tmp/ctgrabtmp/template/cache 1 >/dev/null + curl -s https://raw.githubusercontent.com/ArchemedIan/Proxmox-Arm64-Container-Fetcher/main/pimox_image_fetcher.sh > /tmp/ctgrabtmp/pimox_image_fetcher.sh + chmod a+x /tmp/ctgrabtmp/pimox_image_fetcher.sh + /tmp/ctgrabtmp/pimox_image_fetcher.sh ${PCT_OSTYPE} ${PCT_OSVERSION:-} default /tmp/ctgrabtmp/template/cache 1 >/dev/null 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'."