Debian Codegraph @

debian/gross.postinst

raw
1 #! /bin/sh
2 # postinst script for gross
3
4 set -e
5
6 # lintian: postinst-does-not-load-confmodule
7 . /usr/share/debconf/confmodule
8
9 case "$1" in
10 configure)
11 DBDIR='/var/lib/gross'
12
13 getent passwd gross > /dev/null || \
14 adduser --system --home "$DBDIR" --no-create-home \
15 --disabled-password --group gross
16 getent group gross > /dev/null || \
17 addgroup --system gross
18
19 install -d -o gross -g gross -m 0700 "$DBDIR"
20 ;;
21
22 abort-upgrade|abort-remove|abort-deconfigure)
23
24 ;;
25
26 *)
27 echo "postinst called with unknown argument \`$1'" >&2
28 exit 1
29 ;;
30 esac
31
32 #DEBHELPER#
33
34 # without this, debconf hangs after end of postinst.
35 #db_stop
36
37 exit 0