diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-12-22 14:31:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-22 14:31:05 +0200 |
commit | 023b358b1d690661aee5081169ff0d123541a59d (patch) | |
tree | 591799281b6b5505af442610eb206ab28395b5fe /netdata-installer.sh | |
parent | 3212bd341ca4f0f5f3393eb35afe532b10639d4e (diff) |
feat(packaging): add netdata to www-data group on Proxmox (#14168)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index 94745a2951..282be94888 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -1089,6 +1089,11 @@ if [ "$(id -u)" -eq 0 ]; then # shellcheck disable=SC2086 portable_add_user_to_group ${g} netdata && NETDATA_ADDED_TO_GROUPS="${NETDATA_ADDED_TO_GROUPS} ${g}" 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 else run_failed "The installer does not run as root. Nothing to do for user and groups" fi |