ntopng: use fetch_and_deploy_from_url for the ntop repo package

Replaces the manual curl + apt install + rm dance with the core helper,
which handles download failures, the dpkg fallback and deb diagnostics.
apt update folded into the install block.
This commit is contained in:
MickLesk
2026-08-15 23:28:27 +02:00
parent c9baccd80f
commit 7abd85b0f9
+2 -6
View File
@@ -13,14 +13,10 @@ setting_up_container
network_check
update_os
msg_info "Adding ntop Repository"
curl -fsSL "https://packages.ntop.org/apt-stable/$(get_os_info codename)/all/apt-ntop-stable.deb" -o /tmp/apt-ntop-stable.deb
$STD apt install -y /tmp/apt-ntop-stable.deb
rm -f /tmp/apt-ntop-stable.deb
$STD apt update
msg_ok "Added ntop Repository"
fetch_and_deploy_from_url "https://packages.ntop.org/apt-stable/$(get_os_info codename)/all/apt-ntop-stable.deb" ""
msg_info "Installing ntopng"
$STD apt update
$STD apt install -y ntopng
msg_ok "Installed ntopng"