[Debian-ha-commits] [cluster-glue] 03/06: Create hacluster user in cluster-glue.postinst and chown the /var/lib/heartbeat/cores/ directories to hacluster and nobody. Closes: #759473.
Christoph Berg
myon at debian.org
Fri Mar 25 18:38:09 UTC 2016
This is an automated email from the git hooks/post-receive script.
myon pushed a commit to branch master
in repository cluster-glue.
commit add9bb541487a4199a2ffbb88af3f26d52902cc4
Author: Christoph Berg <myon at debian.org>
Date: Fri Mar 25 11:51:00 2016 +0100
Create hacluster user in cluster-glue.postinst and chown the /var/lib/heartbeat/cores/ directories to hacluster and nobody. Closes: #759473.
---
debian/changelog | 3 +++
debian/cluster-glue.postinst | 14 ++++++++++++++
debian/control | 1 +
3 files changed, 18 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index ffc92ce..f2a2968 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,9 @@ cluster-glue (1.0.12-2) UNRELEASED; urgency=medium
* FTBFS due to openipmi problems resolved now. Closes: #818523.
* Add bzip2 to cluster-glue dependencies. Closes: #613562.
* Add ipmitool to cluster-glue recommendations. Closes: #630718.
+ * Create hacluster user in cluster-glue.postinst and chown the
+ /var/lib/heartbeat/cores/ directories to hacluster and nobody.
+ Closes: #759473.
* Update list of Uploaders.
-- Christoph Berg <myon at debian.org> Thu, 24 Mar 2016 21:42:27 +0100
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#
diff --git a/debian/control b/debian/control
index 3f20705..86fa755 100644
--- a/debian/control
+++ b/debian/control
@@ -58,6 +58,7 @@ Depends: ${shlibs:Depends},
${misc:Depends},
${perl:Depends},
${python:Depends},
+ adduser,
bzip2,
libtimedate-perl,
liblrm2 (>= ${binary:Version}),
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/cluster-glue.git
More information about the Debian-HA-Commits
mailing list