File: postfix-policyd-spf-python.postinst

package info (click to toggle)
spf-engine 3.0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 484 kB
  • sloc: python: 1,600; sh: 116; makefile: 15
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