Update create_lxc.sh

pull/1756/head
ArchemedIan 2 years ago
parent 86711cafd6
commit 81b0beb7e1
  1. 2
      ct/create_lxc.sh

@ -145,7 +145,7 @@ if [ "$arm64ct" = "yes" ]; then
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
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 5
msg_ok "Downloaded And Built LXC Template for Arm64 $PCT_OSTYPE $PCT_OSVERSION"
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)

Loading…
Cancel
Save