summaryrefslogtreecommitdiffstats
path: root/packaging/cmake/pkg-files/deb/plugin-apps/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/cmake/pkg-files/deb/plugin-apps/preinst')
-rwxr-xr-xpackaging/cmake/pkg-files/deb/plugin-apps/preinst11
1 files changed, 11 insertions, 0 deletions
diff --git a/packaging/cmake/pkg-files/deb/plugin-apps/preinst b/packaging/cmake/pkg-files/deb/plugin-apps/preinst
new file mode 100755
index 000000000..57615ec06
--- /dev/null
+++ b/packaging/cmake/pkg-files/deb/plugin-apps/preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+ install)
+ if ! getent group netdata > /dev/null; then
+ addgroup --quiet --system netdata
+ fi
+ ;;
+esac