fix for create_lxc

This commit is contained in:
Sam Heinz
2024-04-10 14:47:07 +10:00
parent 34069ea74a
commit eefdc509fe

View File

@@ -177,10 +177,7 @@ fi
if [ -d "/var/lib/vz/template/cache" ]; then if [ -d "/var/lib/vz/template/cache" ]; then
TEMPLATE=$PCT_OSTYPE-$TEMPLATE_VARIENT-rootfs.tar.xz TEMPLATE=$PCT_OSTYPE-$TEMPLATE_VARIENT-rootfs.tar.xz
# Download template if needed # Download template if needed
if [ ! -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then
wget -q $(curl -s https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep debian-bookworm-arm64-rootfs.tar.xz | cut -d\" -f4)
elif [ ! -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then
if [ $PCT_OSTYPE = debian ]; then if [ $PCT_OSTYPE = debian ]; then
msg_info "Downloading LXC Template" msg_info "Downloading LXC Template"
wget -q $(curl -s https://api.github.com/repos/asylumexp/debian-ifupdown2-lxc/releases/latest | grep download | grep debian-$TEMPLATE_VARIENT-arm64-rootfs.tar.xz | cut -d\" -f4) -O /var/lib/vz/template/cache/$TEMPLATE -q || exit "A problem occured while downloading the LXC template." wget -q $(curl -s https://api.github.com/repos/asylumexp/debian-ifupdown2-lxc/releases/latest | grep download | grep debian-$TEMPLATE_VARIENT-arm64-rootfs.tar.xz | cut -d\" -f4) -O /var/lib/vz/template/cache/$TEMPLATE -q || exit "A problem occured while downloading the LXC template."