File: fastnetmon.postinst

package info (click to toggle)
fastnetmon 1.2.8%2Bgit20250911-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,808 kB
  • sloc: cpp: 50,149; perl: 2,522; python: 655; php: 422; sh: 267; ruby: 75; makefile: 65; ansic: 27
file content (22 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

set -e

case "$1" in
	configure)
		getent group fastnetmon >/dev/null 2>&1 || addgroup --system fastnetmon
		adduser --system --no-create-home --home /nonexistant --quiet fastnetmon --ingroup fastnetmon || true
	;;

	abort-upgrade|abort-remove|abort-deconfigure)
	;;

	*)
		echo "postinst called with unknown argument \`$1'" >&2
		exit 1
	;;
esac

#DEBHELPER#

exit 0