aboutsummaryrefslogtreecommitdiffstats
path: root/debian/lacme.postinst
blob: 536e37f7a2e8ac0e66e49a260794113fc525017f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

set -e

if [ "$1" = "configure" ]; then
    if ! getent passwd _lacme-www >/dev/null; then
	    adduser --force-badname --system \
            --home /nonexistent --no-create-home \
            --gecos "lacme www user" \
            --quiet _lacme-www || true
    fi
    if ! getent passwd _lacme-client >/dev/null; then
	    adduser --force-badname --system \
            --home /nonexistent --no-create-home \
            --gecos "lacme client user" \
            --quiet _lacme-client || true
    fi
fi

#DEBHELPER#
exit 0