summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorAustin S. Hemmelgarn <austin@netdata.cloud>2020-01-30 09:50:52 -0500
committerGitHub <noreply@github.com>2020-01-30 09:50:52 -0500
commit5ecdecce05a1a0dd2317efa0b426331290f49635 (patch)
tree46f42bdfb1e1d85e6a233d8663b35dcd218677b1 /netdata-installer.sh
parent15caabfcf8435a2b1957b79dcf260bce91d8fa1f (diff)
Set ownership correctly for plugins in netdata-installer.sh (#7923)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index 80d2553dc6..3d73ae5164 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -731,6 +731,7 @@ if [ "${UID}" -eq 0 ]; then
run chown -R "root:${admin_group}" "${NETDATA_PREFIX}/usr/libexec/netdata"
run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type d -exec chmod 0755 {} \;
run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type f -exec chmod 0644 {} \;
+ run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type f -a -name \*.plugin -exec chown :${NETDATA_GROUP} {} \;
run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type f -a -name \*.plugin -exec chmod 0750 {} \;
run find "${NETDATA_PREFIX}/usr/libexec/netdata" -type f -a -name \*.sh -exec chmod 0755 {} \;