mirror of https://github.com/tteck/Proxmox.git
Update plex_container.sh
parent
f6502541f2
commit
52386dd5d9
|
@ -108,8 +108,8 @@ info "Container ID is $CTID."
|
||||||
echo -e "${CHECKMARK} \e[1;92m Updating LXC Template List... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Updating LXC Template List... \e[0m"
|
||||||
pveam update >/dev/null
|
pveam update >/dev/null
|
||||||
echo -e "${CHECKMARK} \e[1;92m Downloading LXC Template... \e[0m"
|
echo -e "${CHECKMARK} \e[1;92m Downloading LXC Template... \e[0m"
|
||||||
OSTYPE=debian
|
OSTYPE=ubuntu
|
||||||
OSVERSION=${OSTYPE}-11
|
OSVERSION=${OSTYPE}-20.04
|
||||||
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($OSVERSION.*\)/\1/p" | sort -t - -k 2 -V)
|
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($OSVERSION.*\)/\1/p" | sort -t - -k 2 -V)
|
||||||
TEMPLATE="${TEMPLATES[-1]}"
|
TEMPLATE="${TEMPLATES[-1]}"
|
||||||
pveam download local $TEMPLATE >/dev/null ||
|
pveam download local $TEMPLATE >/dev/null ||
|
||||||
|
|
Loading…
Reference in New Issue