summaryrefslogtreecommitdiffstats
path: root/contrib/debian/netdata-plugin-chartsd.preinst
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/debian/netdata-plugin-chartsd.preinst')
-rw-r--r--contrib/debian/netdata-plugin-chartsd.preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/debian/netdata-plugin-chartsd.preinst b/contrib/debian/netdata-plugin-chartsd.preinst
new file mode 100644
index 000000000..fcabb415a
--- /dev/null
+++ b/contrib/debian/netdata-plugin-chartsd.preinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ install)
+ if ! getent group netdata > /dev/null; then
+ addgroup --quiet --system netdata
+ fi
+ ;;
+esac
+
+#DEBHELPER#