diff options
author | pav <pav@FreeBSD.org> | 2007-07-29 23:59:28 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2007-07-29 23:59:28 +0800 |
commit | 723e9480ec10cc503451111b53298752aca40518 (patch) | |
tree | 71a56eb6e1dc29715c625a871306d8c3c7a51b9b /net-im/openfire/pkg-install | |
parent | 3b3a9beef1d2cc2447e50a2c2d6e20026fed1ad7 (diff) | |
download | freebsd-ports-gnome-723e9480ec10cc503451111b53298752aca40518.tar.gz freebsd-ports-gnome-723e9480ec10cc503451111b53298752aca40518.tar.zst freebsd-ports-gnome-723e9480ec10cc503451111b53298752aca40518.zip |
- Update maintainer's email address
- Style nits
Submitted by: Nikolay Pavlov <quetzal@zone3000.net> (maintainer)
Diffstat (limited to 'net-im/openfire/pkg-install')
-rw-r--r-- | net-im/openfire/pkg-install | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/net-im/openfire/pkg-install b/net-im/openfire/pkg-install index a717fa16cf56..e8a23cadde85 100644 --- a/net-im/openfire/pkg-install +++ b/net-im/openfire/pkg-install @@ -1,34 +1,32 @@ #!/bin/sh -PATH=/bin:/usr/sbin - case $2 in POST-INSTALL) - USER=openfire - GROUP=${USER} - UID=341 - GID=${UID} + PUSER=openfire + PGROUP=${PUSER} + PUID=341 + PGID=${PUID} - if pw group show "${GROUP}" >/dev/null; then - echo "You already have a group \"${GROUP}\", so I will use it." + if pw group show "${PGROUP}" >/dev/null; then + echo "You already have a group \"${PGROUP}\", so I will use it." else - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." + if pw groupadd ${PGROUP} -g ${PGID}; then + echo "Added group \"${PGROUP}\"." else - echo "Adding group \"${GROUP}\" failed..." + echo "Adding group \"${PGROUP}\" failed..." exit 1 fi fi - if pw user show "${USER}" >/dev/null; then - echo "You already have a user \"${USER}\", so I will use it." + if pw user show "${PUSER}" >/dev/null; then + echo "You already have a user \"${PUSER}\", so I will use it." else - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ + if pw useradd ${PUSER} -u ${PUID} -g ${PGROUP} -h - \ -d /nonexistent -s /sbin/nologin -c "Openfire Daemon" then - echo "Added user \"${USER}\"." + echo "Added user \"${PUSER}\"." else - echo "Adding user \"${USER}\" failed..." + echo "Adding user \"${PUSER}\" failed..." exit 1 fi fi |