diff options
Diffstat (limited to 'netdata-git.install')
-rw-r--r-- | netdata-git.install | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/netdata-git.install b/netdata-git.install new file mode 100644 index 000000000000..9d07828b9bb7 --- /dev/null +++ b/netdata-git.install @@ -0,0 +1,14 @@ +post_install() { + getent group netdata > /dev/null || groupadd -r netdata + getent passwd netdata > /dev/null || useradd -r -g netdata -c netdata -s /usr/bin/nologin -d / netdata + chown netdata:netdata /var/log/netdata + chown netdata:netdata /var/cache/netdata + + echo "Download the default config file from http://127.0.0.1:19999/netdata.conf" + echo "after the daemon has been started. Copy it to /etc/netdata/ and modify it." +} + +pre_remove() { + # This removes the group 'netdata' as well: + userdel netdata +} |