summaryrefslogtreecommitdiff
path: root/debian/pcp-testsuite.postinst
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-26 12:33:50 +0400
commit47e6e7c84f008a53061e661f31ae96629bc694ef (patch)
tree648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /debian/pcp-testsuite.postinst
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'debian/pcp-testsuite.postinst')
-rw-r--r--debian/pcp-testsuite.postinst7
1 files changed, 7 insertions, 0 deletions
diff --git a/debian/pcp-testsuite.postinst b/debian/pcp-testsuite.postinst
new file mode 100644
index 0000000..97e86f1
--- /dev/null
+++ b/debian/pcp-testsuite.postinst
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+#DEBHELPER#
+
+getent group pcpqa >/dev/null || groupadd -r pcpqa
+getent passwd pcpqa >/dev/null || \
+ useradd -c "PCP Quality Assurance" -g pcpqa -d /var/lib/pcp -m -r -s /bin/bash pcpqa
+chown -R pcpqa:pcpqa /var/lib/pcp/testsuite 2>/dev/null || true