File: opendmarc.postinst

package info (click to toggle)
opendmarc 1.3.0%2Bdfsg-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,480 kB
  • ctags: 913
  • sloc: xml: 19,673; ansic: 12,748; sh: 10,976; perl: 2,060; makefile: 194; python: 58
file content (18 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
	if ! id -u opendmarc >/dev/null 2>&1; then
		adduser --quiet --system --group --home /var/run/opendmarc opendmarc
	fi

	# Set ownership if the admin has not overriden it.
	if ! dpkg-statoverride --list /var/run/opendmarc >/dev/null; then
		chown opendmarc:opendmarc /var/run/opendmarc
	fi
fi

#DEBHELPER#

exit 0