diff options
author | Vladimir Kobal <vlad@prokk.net> | 2019-02-13 11:34:58 +0200 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-02-13 10:34:58 +0100 |
commit | ea0e0f8f5ea44c0f5f5b4aadffede1c1b43b7d1e (patch) | |
tree | 885b2c79f1ab6412cb40325c31ec0f38e271fb0b /netdata-installer.sh | |
parent | 2f71662ac40e056efea2c5f2badf4b5d9df77fc7 (diff) |
Split nfacct plugin into separate process (#5361)
* Prepare build configuration
* Prepare plugin for separating
* Add command line options
* Add debug messages
* Use text API
* Minor fixes
* Update the documentation
* Minor documentation formatting
* Fix LGTM alerts
* Fix building with CMake
* Add nfacct and cups plugins to apps.plugin groups
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 23b10f730c..c3abeefd16 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -282,7 +282,7 @@ if [ "${UID}" -ne 0 ]; then if [ -z "${NETDATA_PREFIX}" ]; then netdata_banner "wrong command line options!" cat <<NONROOTNOPREFIX - + ${TPUT_RED}${TPUT_BOLD}Sorry! This will fail!${TPUT_RESET} You are attempting to install netdata as non-root, but you plan @@ -306,7 +306,7 @@ NONROOTNOPREFIX else cat <<NONROOT - + ${TPUT_RED}${TPUT_BOLD}IMPORTANT${TPUT_RESET}: You are about to install netdata as a non-root user. Netdata will work, but a few data collection modules that @@ -760,6 +760,11 @@ if [ ${UID} -eq 0 ]; then run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/freeipmi.plugin" fi + if [ -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/nfacct.plugin" ]; then + run chown root:${NETDATA_GROUP} "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/nfacct.plugin" + run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/nfacct.plugin" + fi + if [ -f "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" ]; then run chown root:${NETDATA_GROUP} "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" run chmod 4750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/cgroup-network" @@ -1007,7 +1012,7 @@ if [ "${AUTOUPDATE}" = "1" ]; then rm -f "${crondir}/netdata-updater.sh" fi progress "Installing new netdata-updater in cron" - + rm ${installer_dir}/netdata-updater.sh || : #TODO(paulfantom): this workaround should be removed after v1.13.0-rc1. It just needs to be propagated rm -f "${crondir}/netdata-updater" |