diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2014-10-26 12:33:50 +0400 |
commit | 47e6e7c84f008a53061e661f31ae96629bc694ef (patch) | |
tree | 648a07f3b5b9d67ce19b0fd72e8caa1175c98f1a /build/sun/preinstall | |
download | pcp-debian.tar.gz |
Debian 3.9.10debian/3.9.10debian
Diffstat (limited to 'build/sun/preinstall')
-rwxr-xr-x | build/sun/preinstall | 9 |
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 |