File: iperf3.postinst

package info (click to toggle)
iperf3 3.20-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 3,152 kB
  • sloc: ansic: 15,094; sh: 5,300; makefile: 243; python: 134
file content (27 lines) | stat: -rwxr-xr-x 540 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
23
24
25
26
27
#!/bin/sh

set -e

. /usr/share/debconf/confmodule

if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-deconfigure" ] || [ "$1" = "abort-remove" ] ; then
	# create iperf3 group/user
	if ! getent group iperf3 >/dev/null 2>&1; then
    		addgroup --system --quiet iperf3
	fi
	if ! getent passwd iperf3 >/dev/null 2>&1; then
    		adduser --system --quiet --ingroup iperf3	\
			--no-create-home --home /nonexistent	\
			iperf3
	fi

fi

db_get iperf3/start_daemon
if [ "$RET" = 'true' ] ; then

	#DEBHELPER#

fi

exit 0