File: tcpdump.postinst

package info (click to toggle)
tcpdump 4.99.0-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,552 kB
  • sloc: ansic: 84,255; sh: 3,413; makefile: 403; perl: 298; awk: 123
file content (12 lines) | stat: -rwxr-xr-x 275 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

if ! getent group tcpdump >/dev/null 2>&1; then
    addgroup --system --quiet tcpdump
fi
if ! getent passwd tcpdump >/dev/null 2>&1; then
    adduser --system --quiet --ingroup tcpdump		\
	    --no-create-home --home /nonexistent	\
	    tcpdump
fi

#DEBHELPER#