summaryrefslogtreecommitdiff
path: root/build/sun/preinstall
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 /build/sun/preinstall
downloadpcp-debian.tar.gz
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'build/sun/preinstall')
-rwxr-xr-xbuild/sun/preinstall9
1 files changed, 9 insertions, 0 deletions
diff --git a/build/sun/preinstall b/build/sun/preinstall
new file mode 100755
index 0000000..aa6fce9
--- /dev/null
+++ b/build/sun/preinstall
@@ -0,0 +1,9 @@
+#!/bin/sh
+#
+# Install unprivileged user (and group) account for PCP daemons.
+#
+
+export PATH=/usr/sbin:$PATH
+getent group pcp >/dev/null || groupadd pcp
+getent passwd pcp >/dev/null || \
+ useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -s /usr/bin/false pcp