Files
nDPId/packages/redhat/pre_install
Toni Uhlig 4bed2a791f CMake/RPM integration
* CI integration
 * RPM (un)install scripts

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2024-11-17 17:12:06 +01:00

20 lines
945 B
Bash

#!/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