summaryrefslogtreecommitdiffstats
path: root/debian/cluster-glue.postinst
blob: 16b6f47ced82c2c089e625e3dceae4de38fbc51f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

set -e

if [ "$1" = configure ]; then
    # keep group and user in sync with pacemaker-common.postinst
    addgroup --system haclient
    adduser --system hacluster --ingroup haclient --home /var/lib/pacemaker --no-create-home

    chown hacluster:haclient /var/lib/heartbeat/cores/hacluster
    chown nobody:nogroup /var/lib/heartbeat/cores/nobody
fi

#DEBHELPER#