summaryrefslogtreecommitdiffstats
path: root/packaging/makeself
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/makeself')
-rwxr-xr-xpackaging/makeself/install-or-update.sh13
-rwxr-xr-xpackaging/makeself/jobs/50-fping-5.1.install.sh45
-rwxr-xr-xpackaging/makeself/jobs/70-netdata-git.install.sh2
3 files changed, 7 insertions, 53 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh
index be2b2f75f..52a23fc70 100755
--- a/packaging/makeself/install-or-update.sh
+++ b/packaging/makeself/install-or-update.sh
@@ -27,7 +27,7 @@ fi
STARTIT=1
REINSTALL_OPTIONS=""
-RELEASE_CHANNEL="nightly" # check .travis/create_artifacts.sh before modifying
+RELEASE_CHANNEL="nightly"
while [ "${1}" ]; do
case "${1}" in
@@ -121,6 +121,11 @@ if portable_add_group netdata; then
run_failed "Failed to add netdata user to secondary groups"
fi
done
+ # Netdata must be able to read /etc/pve/qemu-server/* and /etc/pve/lxc/*
+ # for reading VMs/containers names, CPU and memory limits on Proxmox.
+ if [ -d "/etc/pve" ]; then
+ portable_add_user_to_group "www-data" netdata && NETDATA_ADDED_TO_GROUPS="${NETDATA_ADDED_TO_GROUPS} www-data"
+ fi
NETDATA_USER="netdata"
NETDATA_GROUP="netdata"
else
@@ -218,12 +223,6 @@ if [ -f "usr/libexec/netdata/plugins.d/go.d.plugin" ] && command -v setcap 1>/de
run setcap "cap_net_admin+epi cap_net_raw=eip" "usr/libexec/netdata/plugins.d/go.d.plugin"
fi
-# fix the fping binary
-if [ -f bin/fping ]; then
- run chown root:${NETDATA_GROUP} bin/fping
- run chmod 4750 bin/fping
-fi
-
# -----------------------------------------------------------------------------
echo "Configure TLS certificate paths"
diff --git a/packaging/makeself/jobs/50-fping-5.1.install.sh b/packaging/makeself/jobs/50-fping-5.1.install.sh
deleted file mode 100755
index 644b5524a..000000000
--- a/packaging/makeself/jobs/50-fping-5.1.install.sh
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: GPL-3.0-or-later
-
-# shellcheck source=packaging/makeself/functions.sh
-. "$(dirname "${0}")/../functions.sh" "${@}" || exit 1
-
-version="5.1"
-
-# shellcheck disable=SC2015
-[ "${GITHUB_ACTIONS}" = "true" ] && echo "::group::Building fping" || true
-
-fetch "fping-${version}" "https://fping.org/dist/fping-${version}.tar.gz" \
- 1ee5268c063d76646af2b4426052e7d81a42b657e6a77d8e7d3d2e60fd7409fe fping
-
-export CFLAGS="-static -I/openssl-static/include -pipe"
-export LDFLAGS="-static -L/openssl-static/lib"
-export PKG_CONFIG_PATH="/openssl-static/lib/pkgconfig"
-
-if [ "${CACHE_HIT:-0}" -eq 0 ]; then
- run ./configure \
- --prefix="${NETDATA_INSTALL_PATH}" \
- --enable-ipv4 \
- --enable-ipv6 \
- --disable-dependency-tracking
-
- cat > doc/Makefile <<-EOF
- all:
- clean:
- install:
- EOF
-
- run make clean
- run make -j "$(nproc)"
-fi
-
-run make install
-
-store_cache fping "${NETDATA_MAKESELF_PATH}/tmp/fping-${version}"
-
-if [ "${NETDATA_BUILD_WITH_DEBUG}" -eq 0 ]; then
- run strip "${NETDATA_INSTALL_PATH}"/bin/fping
-fi
-
-# shellcheck disable=SC2015
-[ "${GITHUB_ACTIONS}" = "true" ] && echo "::endgroup::" || true
diff --git a/packaging/makeself/jobs/70-netdata-git.install.sh b/packaging/makeself/jobs/70-netdata-git.install.sh
index ea6902a44..2c4fb3007 100755
--- a/packaging/makeself/jobs/70-netdata-git.install.sh
+++ b/packaging/makeself/jobs/70-netdata-git.install.sh
@@ -27,7 +27,7 @@ export PKG_CONFIG_PATH="/openssl-static/lib/pkgconfig"
export CMAKE_FLAGS="-DOPENSSL_ROOT_DIR=/openssl-static -DOPENSSL_LIBRARIES=/openssl-static/lib -DCMAKE_INCLUDE_DIRECTORIES_PROJECT_BEFORE=/openssl-static -DLWS_OPENSSL_INCLUDE_DIRS=/openssl-static/include -DLWS_OPENSSL_LIBRARIES=/openssl-static/lib/libssl.a;/openssl-static/lib/libcrypto.a"
run ./netdata-installer.sh \
- --install "${NETDATA_INSTALL_PARENT}" \
+ --install-prefix "${NETDATA_INSTALL_PARENT}" \
--dont-wait \
--dont-start-it \
--require-cloud \