mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-08-19 11:02:42 +02:00
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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user