File: tcpcryptd.postinst

package info (click to toggle)
tcpcrypt 0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 5,292 kB
  • ctags: 1,747
  • sloc: ansic: 13,695; sh: 4,585; asm: 482; makefile: 168; objc: 149
file content (19 lines) | stat: -rw-r--r-- 430 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh -e

TCPCRYPT_USER=debian-tcpcryptd

case $1 in
    configure)
	# add a debian-tcpcryptd user if one does not already exist
	if ! getent passwd "$TCPCRYPT_USER" >/dev/null ; then
	    echo "adding tcpcryptd user..."
	    adduser --quiet --system --no-create-home --group \
		--home "/var/run/tcpcryptd" \
		--shell '/bin/false' \
		--gecos 'tcpcrypt user,,,' \
		"$TCPCRYPT_USER"
	fi        
        ;;
esac

#DEBHELPER#