diff options
Diffstat (limited to 'sysutils/ganglia-monitor-core/pkg-install')
-rw-r--r-- | sysutils/ganglia-monitor-core/pkg-install | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/sysutils/ganglia-monitor-core/pkg-install b/sysutils/ganglia-monitor-core/pkg-install deleted file mode 100644 index a1382a8c05df..000000000000 --- a/sysutils/ganglia-monitor-core/pkg-install +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/sh - -u=ganglia -g=ganglia -ugid=102 -homedir=/nonexistent -shell=/sbin/nologin -rrd_rootdir=/var/db/ganglia/rrds - -case $2 in -POST-INSTALL) - if pw group show "${g}" >/dev/null 2>&1; then - echo "Using existing group \"${g}\"." - else - echo "Creating group \"${g}\", (gid: ${ugid})." - pw groupadd ${g} -g ${ugid} - if [ $? != 0 ]; then - echo "Failed to add group \"${g}\"." - exit 1 - fi - fi - if pw user show "${u}" >/dev/null 2>&1; then - echo "Using existing user \"${u}\"." - else - echo "Creating user \"${u}\", (uid: ${ugid})." - pw useradd ${u} -u ${ugid} -g ${ugid} -h - \ - -d ${homedir} -s ${shell} -c "Ganglia User" - if [ $? != 0 ]; then - echo "Failed to add user \"${u}\"." - exit 1 - fi - fi - - mkdir -p ${rrd_rootdir} - chown -R ${u}:${g} ${rrd_rootdir} - ;; -esac |