diff options
author | RX14 | 2018-03-26 22:55:17 +0100 |
---|---|---|
committer | RX14 | 2018-03-26 22:55:17 +0100 |
commit | 8cfd5448ee17081e47c1ea6f341ebdbe80cd9a13 (patch) | |
tree | a8101189edfd985bc906247c2d8b132bebac6baa /netdata.install | |
parent | e0718e625fa3e9f24a374ed033b5295ec85bf067 (diff) | |
download | aur-8cfd5448ee17081e47c1ea6f341ebdbe80cd9a13.tar.gz |
Update package to be closer to community package
Diffstat (limited to 'netdata.install')
-rw-r--r-- | netdata.install | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/netdata.install b/netdata.install new file mode 100644 index 000000000000..ada66ae3be52 --- /dev/null +++ b/netdata.install @@ -0,0 +1,20 @@ +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 +} + +post_install() { + setcap_netdata + + 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() { + setcap_netdata +} |