From eefdc509fe181c64d92f590c3bd44af3897a40c8 Mon Sep 17 00:00:00 2001 From: Sam Heinz <54530346+asylumexp@users.noreply.github.com> Date: Wed, 10 Apr 2024 14:47:07 +1000 Subject: [PATCH] fix for create_lxc --- ct/create_lxc.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index af8c6221b..6aecf4539 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -177,10 +177,7 @@ fi if [ -d "/var/lib/vz/template/cache" ]; then TEMPLATE=$PCT_OSTYPE-$TEMPLATE_VARIENT-rootfs.tar.xz # Download template if needed - - 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 [ ! -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then if [ $PCT_OSTYPE = debian ]; then 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."