mirror of https://github.com/tteck/Proxmox.git
Update create_lxc.sh
This commit is contained in:
parent
b42e0d85e4
commit
db9725c117
|
@ -146,11 +146,11 @@ msg_ok "Updated LXC Template List"
|
||||||
|
|
||||||
if [ "$arm64ct" = "yes" ]; then
|
if [ "$arm64ct" = "yes" ]; then
|
||||||
msg_info "Arm64 Detected"
|
msg_info "Arm64 Detected"
|
||||||
msg_info "Downloading LXC Template ${PCT_OSTYPE} ${PCT_OSVERSION:-}"
|
msg_info "Downloading LXC Template $PCT_OSTYPE $PCT_OSVERSION"
|
||||||
pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp
|
pvesm add dir ctgrabtmp -content vztmpl -path /tmp/ctgrabtmp
|
||||||
curl -s https://raw.githubusercontent.com/ArchemedIan/Proxmox-Arm64-Container-Fetcher/main/pimox_image_fetcher.sh > /tmp/ctgrabtmp/pimox_image_fetcher.sh
|
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
|
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
|
/tmp/ctgrabtmp/pimox_image_fetcher.sh "$PCT_OSTYPE" "$PCT_OSVERSION" default /tmp/ctgrabtmp/template/cache 1 >/dev/null
|
||||||
TEMPLATE_SEARCH=${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)
|
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'."
|
[ ${#TEMPLATES[@]} -gt 0 ] || exit "Unable to find a template when searching for '$TEMPLATE_SEARCH'."
|
||||||
|
|
Loading…
Reference in New Issue