File: postfix-policyd-spf-perl.postinst

package info (click to toggle)
postfix-policyd-spf-perl 2.011-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 184 kB
  • sloc: perl: 590; sh: 14; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 311 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
	if ! id -u policyd-spf >/dev/null 2>&1; then
		adduser --quiet --system --group --no-create-home --home /nonexistent policyd-spf
	elif [ -n "$2" ]; then
		addgroup --quiet --system policyd-spf
		usermod -g policyd-spf policyd-spf
	fi
fi

#DEBHELPER#

exit 0