PKGBUILDs/community/netdata/netdata.install

21 lines
541 B
Text
Raw Normal View History

2017-12-18 13:26:20 +00:00
setcap_netdata() {
#https://github.com/firehol/netdata/wiki/Apps-Plugin#apps-plugin-is-missing-information
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() {
2017-12-18 13:26:20 +00:00
setcap_netdata
2017-03-26 21:34:52 +00:00
echo
echo "After the daemon has been started for the first time,"
echo "download the default config file from"
echo "http://127.0.0.1:19999/netdata.conf"
echo
echo "Copy it to /etc/netdata/ and modify it."
echo
}
post_upgrade() {
2017-12-18 13:26:20 +00:00
setcap_netdata
2017-03-26 21:34:52 +00:00
}