mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-09-01 02:53:16 +02:00
ntopng: use ntop.org's documented apt repo per Debian codename, not always apt-stable (#16862)
This commit is contained in:
committed by
GitHub
parent
a03866e79a
commit
97c00113be
+3
-1
@@ -1,5 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
|
||||
_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main"
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: MickLesk (CanbiZ)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
|
||||
@@ -13,7 +13,15 @@ setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
fetch_and_deploy_from_url "https://packages.ntop.org/apt-stable/$(get_os_info codename)/all/apt-ntop-stable.deb" ""
|
||||
NTOP_CODENAME="$(get_os_info codename)"
|
||||
case "$NTOP_CODENAME" in
|
||||
bookworm | trixie)
|
||||
fetch_and_deploy_from_url "https://packages.ntop.org/apt/${NTOP_CODENAME}/all/apt-ntop.deb" ""
|
||||
;;
|
||||
*)
|
||||
fetch_and_deploy_from_url "https://packages.ntop.org/apt-stable/${NTOP_CODENAME}/all/apt-ntop-stable.deb" ""
|
||||
;;
|
||||
esac
|
||||
|
||||
msg_info "Installing ntopng"
|
||||
$STD apt update
|
||||
|
||||
Reference in New Issue
Block a user