diff options
author | Ilya Mashchenko <ilya@netdata.cloud> | 2022-08-11 18:57:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 18:57:35 +0300 |
commit | 80e9a6992f315deb196c9726ed6303aefeac9ebd (patch) | |
tree | 83eba13b1cc1b2cc34b6c1bd43dc4c12e6654e51 /netdata-installer.sh | |
parent | 5b6a8ccbfbf6131b6baf915124278595a1a6e5e6 (diff) |
fix(packaging): add CAP_NET_ADMIN for go.d.plugin (#13507)
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-x | netdata-installer.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh index f6f4fd520a..941cf13f39 100755 --- a/netdata-installer.sh +++ b/netdata-installer.sh @@ -1443,6 +1443,9 @@ install_go() { run chown "root:${NETDATA_GROUP}" "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin" fi run chmod 0750 "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin" + if command -v setcap 1>/dev/null 2>&1; then + run setcap cap_net_admin+epi "${NETDATA_PREFIX}/usr/libexec/netdata/plugins.d/go.d.plugin" + fi rm -rf "${tmp}" [ -n "${GITHUB_ACTIONS}" ] && echo "::endgroup::" |