Debian Codegraph @

debian/laniakea-server.postinst

raw
1 #!/bin/sh
2 set -e
3
4 #DEBHELPER#
5
6 case "$1" in
7 configure)
8 if ! getent passwd lkmaster >/dev/null; then
9 # Generic user for various administrative tasks, e.g. archive creation & management
10 # NOTE: This user needs a HOME directory, mostly because of GnuPG silliness
11 adduser \
12 --system \
13 --disabled-login \
14 --disabled-password \
15 --home /var/lib/laniakea/home \
16 --group \
17 lkmaster
18
19 # web user needs to be a member of the master user group for HTTPS web uploads
20 # (if they happen on the same machine, without proxy)
21 adduser lkweb lkmaster
22 fi
23 ;;
24 esac
25
26 exit 0