PKGBUILDs/extra/netdata/netdata.install

13 lines
320 B
Text
Raw Normal View History

2017-12-18 13:26:20 +00:00
setcap_netdata() {
2018-11-06 13:51:20 +00:00
# https://github.com/netdata/netdata/tree/master/collectors/apps.plugin#permissions
2017-12-18 13:26:20 +00:00
setcap cap_dac_read_search,cap_sys_ptrace+ep /usr/lib/netdata/plugins.d/apps.plugin || chmod 1755 /usr/lib/netdata/plugins.d/apps.plugin
2017-03-26 21:34:52 +00:00
}
post_install() {
2018-11-06 13:51:20 +00:00
setcap_netdata
2017-03-26 21:34:52 +00:00
}
post_upgrade() {
2018-11-06 13:51:20 +00:00
setcap_netdata
2017-03-26 21:34:52 +00:00
}