Refactor: NZBGet (#10302)

This commit is contained in:
Slaviša Arežina
2025-12-25 15:21:41 +01:00
committed by GitHub
parent 9f1e214bc0
commit 0ece3263bd
2 changed files with 13 additions and 22 deletions

View File

@ -27,10 +27,10 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
msg_info "Updating $APP LXC"
msg_info "Updating NZBGet"
$STD apt update
$STD apt -y upgrade
msg_ok "Updated $APP LXC"
$STD apt upgrade -y
msg_ok "Updated NZBGet"
msg_ok "Updated successfully!"
exit
}

View File

@ -16,29 +16,20 @@ update_os
msg_info "Installing Dependencies"
$STD apt install -y \
par2
cat <<EOF >/etc/apt/sources.list.d/non-free.list
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
EOF
$STD apt update
$STD apt install -y unrar
rm /etc/apt/sources.list.d/non-free.list
par2 \
unrar-free
msg_ok "Installed Dependencies"
msg_info "Installing NZBGet"
mkdir -p /usr/share/keyrings
curl -fsSL https://nzbgetcom.github.io/nzbgetcom.asc | gpg --dearmor -o /usr/share/keyrings/nzbgetcom.gpg
cat <<EOF >/etc/apt/sources.list.d/nzbgetcom.sources
Types: deb
URIs: https://nzbgetcom.github.io/deb
Suites: stable
Components: main
Architectures: all
Signed-By: /usr/share/keyrings/nzbgetcom.gpg
EOF
$STD apt update
setup_deb822_repo \
"nzbgetcom" \
"https://nzbgetcom.github.io/nzbgetcom.asc" \
"https://nzbgetcom.github.io/deb" \
"stable"
$STD apt install -y nzbget
sed -i "s|UnrarCmd=unrar|UnrarCmd=unrar-free|g" /var/lib/nzbget/nzbget.conf
sed -i "s|SevenZipCmd=7zz|SevenZipCmd=7z|g" /var/lib/nzbget/nzbget.conf
systemctl restart nzbget
msg_ok "Installed NZBGet"
motd_ssh