File: spf-milter-python.postinst

package info (click to toggle)
pymilter-milters 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,108 kB
  • sloc: python: 3,181; sh: 486; makefile: 37; ansic: 33
file content (19 lines) | stat: -rw-r--r-- 483 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

set -e

if [ "$1" = "configure" ]; then
	if ! id -u spf-milter-python >/dev/null 2>&1; then
		adduser --quiet --system --group --home /var/run/spf-milter-python spf-milter-python
	elif [ -n "$2" ]; then
		addgroup --quiet --system spf-milter-python
		usermod -g spf-milter-python spf-milter-python
	fi
	chown spf-milter-python:spf-milter-python /var/log/spf-milter-python
	chown spf-milter-python:spf-milter-python /var/log/spf-milter-python/save
fi

#DEBHELPER#

exit 0