summaryrefslogtreecommitdiffstats
path: root/debian/cluster-glue.postinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/cluster-glue.postinst')
-rw-r--r--debian/cluster-glue.postinst14
1 files changed, 14 insertions, 0 deletions
diff --git a/debian/cluster-glue.postinst b/debian/cluster-glue.postinst
new file mode 100644
index 0000000..16b6f47
--- /dev/null
+++ b/debian/cluster-glue.postinst
@@ -0,0 +1,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#