diff --git a/ct/nzbget.sh b/ct/nzbget.sh index 7d102eb88..6048c826e 100644 --- a/ct/nzbget.sh +++ b/ct/nzbget.sh @@ -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 } diff --git a/install/nzbget-install.sh b/install/nzbget-install.sh index 81f994ab8..73ae186c8 100644 --- a/install/nzbget-install.sh +++ b/install/nzbget-install.sh @@ -16,29 +16,20 @@ update_os msg_info "Installing Dependencies" $STD apt install -y \ - par2 - -cat </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 </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