diff options
Diffstat (limited to 'packages/debian')
-rwxr-xr-x | packages/debian/postrm | 6 | ||||
-rwxr-xr-x | packages/debian/preinst | 16 | ||||
-rwxr-xr-x | packages/debian/prerm | 3 |
3 files changed, 25 insertions, 0 deletions
diff --git a/packages/debian/postrm b/packages/debian/postrm new file mode 100755 index 000000000..0699f2a47 --- /dev/null +++ b/packages/debian/postrm @@ -0,0 +1,6 @@ +#!/bin/sh + +rm -rf /run/nDPId /run/nDPIsrvd +deluser ndpid || true +deluser ndpisrvd || true +delgroup ndpisrvd-distributor || true diff --git a/packages/debian/preinst b/packages/debian/preinst new file mode 100755 index 000000000..e60ef3af3 --- /dev/null +++ b/packages/debian/preinst @@ -0,0 +1,16 @@ +#!/bin/sh + +addgroup --system ndpisrvd-distributor +adduser --system --no-create-home --shell=/bin/false --group ndpisrvd +adduser --system --no-create-home --shell=/bin/false --group ndpid + +cat <<EOF +********************************************************************************** +* The that may want to access DPI data needs access to /run/nDPIsrvd/distributor * +* * +* To make it accessible to a user, type: * +* sudo usermod --append --groups ndpisrvd-distributor [USER] * +* * +* Please not that you might need to re-login to make changes take effect. * +********************************************************************************** +EOF diff --git a/packages/debian/prerm b/packages/debian/prerm new file mode 100755 index 000000000..6942225bd --- /dev/null +++ b/packages/debian/prerm @@ -0,0 +1,3 @@ +#!/bin/sh + +systemctl stop ndpisrvd.service |