summarylogtreecommitdiffstats
path: root/netdata-go-plugins.install
blob: 4527b352a3c7388a6ec35dc73d9e20164fdccc11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
setcap_netdata_go_plugins() {
    # https://learn.netdata.cloud/docs/agent/collectors/go.d.plugin/modules/ping#requirements
    setcap cap_net_raw=ep /usr/lib/netdata/plugins.d/go.d.plugin
}

post_install() {
    setcap_netdata_go_plugins
}

post_upgrade() {
    setcap_netdata_go_plugins
}