forked from forkanization/Proxmox-arm64
Debian support added, fix for Autobrr install
This commit is contained in:
@@ -111,11 +111,5 @@ Any applications not in ported or unsupported need to be tested for whether they
|
|||||||
<details>
|
<details>
|
||||||
<summary>Unsupported applications</summary>
|
<summary>Unsupported applications</summary>
|
||||||
<li>Proxmox Backup Server - Needs custom image</li>
|
<li>Proxmox Backup Server - Needs custom image</li>
|
||||||
<li>The Debian template - due to issues - see Current issues</li>
|
<li>DaemonSync - built for amd64 only</li>
|
||||||
<li>DaemonSync - deb built for amd64 only</li>
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Current issues</summary>
|
|
||||||
<li>Available debian arm64 images aren't able to be used currently as they have moved from ifupdown networking to systemd-network, meaning that until I can figure out how to make a custom image using ifupdown Debian will not work, if you know how to do this please make an issue, as Im unsure of where to start with this</li>
|
|
||||||
</details>
|
</details>
|
||||||
|
|||||||
+21
-11
@@ -158,13 +158,9 @@ msg_ok "Updated LXC Template List"
|
|||||||
# Get LXC template string
|
# Get LXC template string
|
||||||
if [ $PCT_OSTYPE = debian ]; then
|
if [ $PCT_OSTYPE = debian ]; then
|
||||||
if [ $PCT_OSVERSION = 11 ]; then
|
if [ $PCT_OSVERSION = 11 ]; then
|
||||||
# TEMPLATE_VARIENT=bullseye
|
TEMPLATE_VARIENT=bullseye
|
||||||
# Debian broken - using ubuntu 22.04
|
|
||||||
TEMPLATE_VARIENT=jammy
|
|
||||||
else
|
else
|
||||||
# TEMPLATE_VARIENT=bookworm
|
TEMPLATE_VARIENT=bookworm
|
||||||
# Debian broken - using ubuntu 22.04
|
|
||||||
TEMPLATE_VARIENT=jammy
|
|
||||||
fi
|
fi
|
||||||
elif [ $PCT_OSTYPE = alpine ]; then
|
elif [ $PCT_OSTYPE = alpine ]; then
|
||||||
TEMPLATE_VARIENT=3.18
|
TEMPLATE_VARIENT=3.18
|
||||||
@@ -181,13 +177,27 @@ 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
|
|
||||||
templateurl="https://jenkins.linuxcontainers.org/job/image-$PCT_OSTYPE/architecture=arm64,release=$TEMPLATE_VARIENT,variant=default/lastStableBuild/artifact/rootfs.tar.xz"
|
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)
|
||||||
msg_info "Downloading LXC Template"
|
|
||||||
wget $templateurl -O $TEMPLATE -q || exit "A problem occured while downloading the LXC template."
|
elif [ ! -f "/var/lib/vz/template/cache/$TEMPLATE" ]; then
|
||||||
msg_ok "Downloaded LXC Template"
|
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."
|
||||||
|
msg_ok "Downloaded LXC Template"
|
||||||
|
else
|
||||||
|
templateurl="https://jenkins.linuxcontainers.org/job/image-$PCT_OSTYPE/architecture=arm64,release=$TEMPLATE_VARIENT,variant=default/lastStableBuild/artifact/rootfs.tar.xz"
|
||||||
|
msg_info "Downloading LXC Template"
|
||||||
|
wget $templateurl -O /var/lib/vz/template/cache/$TEMPLATE -q || exit "A problem occured while downloading the LXC template."
|
||||||
|
msg_ok "Downloaded LXC Template"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
if [ $PCT_OSTYPE = debian ]; then
|
||||||
|
PCT_OSTYPE=ubuntu
|
||||||
|
TEMPLATE_VARIENT=jammy
|
||||||
|
msg_info "Debian unsupported with this download method. Using Ubuntu 22.04."
|
||||||
|
fi
|
||||||
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:]]*//')"
|
||||||
|
|
||||||
# Download LXC template if needed
|
# Download LXC template if needed
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ $STD apt-get install -y wget
|
|||||||
msg_ok "Installed Dependencies"
|
msg_ok "Installed Dependencies"
|
||||||
|
|
||||||
msg_info "Installing Autobrr"
|
msg_info "Installing Autobrr"
|
||||||
wget -q $(curl -s https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_arm64 | cut -d\" -f4)
|
wget -q $(curl -s https://api.github.com/repos/autobrr/autobrr/releases/latest | grep download | grep linux_arm64.tar.gz | cut -d\" -f4)
|
||||||
tar -C /usr/local/bin -xzf autobrr*.tar.gz
|
tar -C /usr/local/bin -xzf autobrr*.tar.gz
|
||||||
rm -rf autobrr*.tar.gz
|
rm -rf autobrr*.tar.gz
|
||||||
mkdir -p /root/.config/autobrr
|
mkdir -p /root/.config/autobrr
|
||||||
|
|||||||
Reference in New Issue
Block a user