forked from forkanization/Proxmox-arm64
Add info and error messages to LXC template DL
This commit is contained in:
+3
-1
@@ -183,7 +183,9 @@ if [ -d "/var/lib/vz/template/cache" ]; then
|
|||||||
# Download template if needed
|
# Download template if needed
|
||||||
if [ -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then
|
if [ -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then
|
||||||
templateurl="https://jenkins.linuxcontainers.org/job/image-$PCT_OSTYPE/architecture=arm64,release=$TEMPLATE_VARIENT,variant=default/lastStableBuild/artifact/rootfs.tar.xz"
|
templateurl="https://jenkins.linuxcontainers.org/job/image-$PCT_OSTYPE/architecture=arm64,release=$TEMPLATE_VARIENT,variant=default/lastStableBuild/artifact/rootfs.tar.xz"
|
||||||
wget $templateurl -O $TEMPLATE -q
|
msg_info "Downloading LXC Template"
|
||||||
|
wget $templateurl -O $TEMPLATE -q || exit "A problem occured while downloading the LXC template."
|
||||||
|
msg_ok "Downloaded LXC Template"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
TEMPLATE="$(pveam available | grep -E "arm64.*$PCT_OSTYPE-$TEMPLATE_VARIENT" | sed 's/arm64[[:space:]]*//')"
|
TEMPLATE="$(pveam available | grep -E "arm64.*$PCT_OSTYPE-$TEMPLATE_VARIENT" | sed 's/arm64[[:space:]]*//')"
|
||||||
|
|||||||
Reference in New Issue
Block a user