File: spf-milter-python.postinst

package info (click to toggle)
pymilter 0.8.9-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 928 kB
  • ctags: 559
  • sloc: python: 3,605; ansic: 978; sh: 316; makefile: 46
file content (18 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (4)
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 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 -R spf-milter-python:spf-milter-python /var/log/spf-milter-python
fi

#DEBHELPER#

exit 0