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
+3 -3
View File
@@ -27,10 +27,10 @@ function update_script() {
msg_error "No ${APP} Installation Found!" msg_error "No ${APP} Installation Found!"
exit exit
fi fi
msg_info "Updating $APP LXC" msg_info "Updating NZBGet"
$STD apt update $STD apt update
$STD apt -y upgrade $STD apt upgrade -y
msg_ok "Updated $APP LXC" msg_ok "Updated NZBGet"
msg_ok "Updated successfully!" msg_ok "Updated successfully!"
exit exit
} }
+10 -19
View File
@@ -16,29 +16,20 @@ update_os
msg_info "Installing Dependencies" msg_info "Installing Dependencies"
$STD apt install -y \ $STD apt install -y \
par2 par2 \
unrar-free
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
msg_ok "Installed Dependencies" msg_ok "Installed Dependencies"
msg_info "Installing NZBGet" msg_info "Installing NZBGet"
mkdir -p /usr/share/keyrings setup_deb822_repo \
curl -fsSL https://nzbgetcom.github.io/nzbgetcom.asc | gpg --dearmor -o /usr/share/keyrings/nzbgetcom.gpg "nzbgetcom" \
cat <<EOF >/etc/apt/sources.list.d/nzbgetcom.sources "https://nzbgetcom.github.io/nzbgetcom.asc" \
Types: deb "https://nzbgetcom.github.io/deb" \
URIs: https://nzbgetcom.github.io/deb "stable"
Suites: stable
Components: main
Architectures: all
Signed-By: /usr/share/keyrings/nzbgetcom.gpg
EOF
$STD apt update
$STD apt install -y nzbget $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" msg_ok "Installed NZBGet"
motd_ssh motd_ssh