Update sabnzbd-install.sh

This commit is contained in:
CanbiZ 2025-04-29 15:14:12 +02:00
parent fdb1927d7a
commit cc27c7d79c

View File

@ -34,10 +34,11 @@ msg_ok "Setup Unrar"
msg_info "Installing SABnzbd"
RELEASE=$(curl -fsSL https://api.github.com/repos/sabnzbd/sabnzbd/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
$STD tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/$RELEASE/SABnzbd-${RELEASE}-src.tar.gz)
mv SABnzbd-${RELEASE} /opt/sabnzbd
mkdir -p /opt/sabnzbd
uv venv /opt/sabnzbd/venv
uv pip install -r /opt/sabnzbd/requirements.txt
$STD tar zxvf <(curl -fsSL https://github.com/sabnzbd/sabnzbd/releases/download/${RELEASE}/SABnzbd-${RELEASE}-src.tar.gz) -C /opt/sabnzbd --strip-components=1
/opt/sabnzbd/venv/bin/pip install --upgrade pip
/opt/sabnzbd/venv/bin/pip install -r /opt/sabnzbd/requirements.txt
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
msg_ok "Installed SABnzbd"