summaryrefslogtreecommitdiff
path: root/build/sun/preinstall
diff options
context:
space:
mode:
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