]> mj.ucw.cz Git - subauth.git/blob - subauthd.postinst
b9c2d96c20c1de21787abfc766be3aa6c7805ff3
[subauth.git] / subauthd.postinst
1 #!/bin/sh -e
2
3 if [ "$1" = configure ] ; then
4         if ! getent passwd subauthd >/dev/null ; then
5                 adduser --system --group --disabled-login --home /nonexistent --no-create-home --gecos 'Sub-authentication daemon' subauthd
6         fi
7         chown subauthd.subauthd /var/lib/subauthd
8         chmod 700 /var/lib/subauthd
9 fi
10
11 #DEBHELPER#
12
13 exit 0