File: python3-laniakea.postinst

package info (click to toggle)
laniakea 0.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 15,460 kB
  • sloc: javascript: 38,493; python: 21,153; sh: 196; makefile: 129; ansic: 3
file content (33 lines) | stat: -rwxr-xr-x 853 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/sh
set -e

#DEBHELPER#

case "$1" in
    configure)
        if ! getent passwd _lklighthouse >/dev/null; then
            # User/group for the "Lighthouse" message relay service & job distribution system,
            # as well as related services (e.g. Mailgun)
            adduser \
                --system \
                --disabled-login \
                --disabled-password \
                --no-create-home \
                --group \
                _lklighthouse
        fi

        if ! getent passwd lkweb >/dev/null; then
            # User for web services as well as the Matrix bot
            adduser \
                --system \
                --disabled-login \
                --disabled-password \
                --no-create-home \
                --ingroup www-data \
                lkweb
        fi
    ;;
esac

exit 0