summaryrefslogtreecommitdiffstats
path: root/packaging/makeself
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-12-22 14:31:05 +0200
committerGitHub <noreply@github.com>2022-12-22 14:31:05 +0200
commit023b358b1d690661aee5081169ff0d123541a59d (patch)
tree591799281b6b5505af442610eb206ab28395b5fe /packaging/makeself
parent3212bd341ca4f0f5f3393eb35afe532b10639d4e (diff)
feat(packaging): add netdata to www-data group on Proxmox (#14168)
Diffstat (limited to 'packaging/makeself')
-rwxr-xr-xpackaging/makeself/install-or-update.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/makeself/install-or-update.sh b/packaging/makeself/install-or-update.sh
index 99cc189e6f..6dfa586968 100755
--- a/packaging/makeself/install-or-update.sh
+++ b/packaging/makeself/install-or-update.sh
@@ -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