File: postfix-policyd-spf-python.postinst

package info (click to toggle)
pypolicyd-spf 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 256 kB
  • ctags: 22
  • sloc: python: 1,051; makefile: 12; sh: 10
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