mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-12-25 16:36:24 +01:00
Refactor: NZBGet (#10302)
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user