aboutsummaryrefslogtreecommitdiff
path: root/packages/redhat/pre_install
diff options
context:
space:
mode:
Diffstat (limited to 'packages/redhat/pre_install')
-rw-r--r--packages/redhat/pre_install19
1 files changed, 19 insertions, 0 deletions
diff --git a/packages/redhat/pre_install b/packages/redhat/pre_install
new file mode 100644
index 000000000..8dc02349e
--- /dev/null
+++ b/packages/redhat/pre_install
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+if [ $1 == 1 ]; then
+ groupadd --system ndpisrvd-distributor
+ adduser --system --no-create-home --shell=/bin/false --user-group ndpisrvd
+ adduser --system --no-create-home --shell=/bin/false --user-group ndpid
+
+ cat <<EOF
+****************************************************************************
+* The user whom may want to access DPI data needs access to: *
+* /run/nDPIsrvd/distributor *
+* *
+* To make it accessible to [USER], type: *
+* sudo usermod --append --groups ndpisrvd-distributor [USER] *
+* *
+* Please note that you might need to re-login to make changes take effect. *
+****************************************************************************
+EOF
+fi