mirror of https://github.com/tteck/Proxmox.git
Update create_lxc.sh
This commit is contained in:
parent
77c140497c
commit
bc9cfd87b3
|
@ -136,10 +136,7 @@ fi
|
||||||
CONTAINER_STORAGE=$(select_storage container) || exit
|
CONTAINER_STORAGE=$(select_storage container) || exit
|
||||||
msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
|
msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
|
||||||
|
|
||||||
# Update LXC template list
|
|
||||||
msg_info "Updating LXC Template List"
|
|
||||||
pveam update >/dev/null
|
|
||||||
msg_ok "Updated LXC Template List"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -161,6 +158,11 @@ if [ "$arm64ct" = "yes" ]; then
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
||||||
|
|
||||||
|
# Update LXC template list
|
||||||
|
msg_info "Updating LXC Template List"
|
||||||
|
pveam update >/dev/null
|
||||||
|
msg_ok "Updated LXC Template List"
|
||||||
# Get LXC template string
|
# Get LXC template string
|
||||||
TEMPLATE_SEARCH=${PCT_OSTYPE}-${PCT_OSVERSION:-}
|
TEMPLATE_SEARCH=${PCT_OSTYPE}-${PCT_OSVERSION:-}
|
||||||
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($TEMPLATE_SEARCH.*\)/\1/p" | sort -t - -k 2 -V)
|
mapfile -t TEMPLATES < <(pveam available -section system | sed -n "s/.*\($TEMPLATE_SEARCH.*\)/\1/p" | sort -t - -k 2 -V)
|
||||||
|
|
Loading…
Reference in New Issue