summaryrefslogtreecommitdiffhomepage
path: root/debian/keysafe-server.postinst
blob: 44fc00c490791568400730607bba0329aee5d062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if ! getent passwd _keysafe >/dev/null; then
    adduser --system --group --disabled-login --disabled-password \
            --home /var/lib/keysafe --force-badname _keysafe
fi
if [ -d "/var/lib/keysafe" ]; then
    chmod 700 /var/lib/keysafe
    chown -R _keysafe:_keysafe /var/lib/keysafe
fi

#DEBHELPER#