diff options
author | Greg Lewis <glewis@FreeBSD.org> | 2003-09-03 05:15:55 +0000 |
---|---|---|
committer | Greg Lewis <glewis@FreeBSD.org> | 2003-09-03 05:15:55 +0000 |
commit | e3a46e78983dcfcdd5ad3361c2ef51f8ec898ad6 (patch) | |
tree | aaba7af9080ff03b4b808e9ae5d5cca9247fd0e5 /net/dgd-lpmud/pkg-install | |
parent | 9fa1b05eaf2c13dc7e660af7535576de83420501 (diff) | |
download | ports-e3a46e78983dcfcdd5ad3361c2ef51f8ec898ad6.tar.gz ports-e3a46e78983dcfcdd5ad3361c2ef51f8ec898ad6.zip |
Notes
Diffstat (limited to 'net/dgd-lpmud/pkg-install')
-rw-r--r-- | net/dgd-lpmud/pkg-install | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/net/dgd-lpmud/pkg-install b/net/dgd-lpmud/pkg-install index f3f34a884256..575cbe714897 100644 --- a/net/dgd-lpmud/pkg-install +++ b/net/dgd-lpmud/pkg-install @@ -9,19 +9,9 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin USER=mud GROUP=${USER} -UID=91 +UID=97 GID=${UID} -if [ -z "${DATADIR}" ]; then - DATADIR=${PKG_PREFIX}/share/dgd-lpmud -fi - -if [ ! -d "${DATADIR}" ]; then - echo -n "Attempting to create ${DATADIR} ..." - mkdir -p "${DATADIR}" - echo "done" -fi - if pw groupshow "${GROUP}" 2>/dev/null; then echo "Using existing group \"${GROUP}\"." else @@ -37,7 +27,7 @@ if pw usershow "${USER}" 2>/dev/null; then echo "Using existing user \"${USER}\"." else if pw useradd "${USER}" -u ${UID} -g "${GROUP}" -h - \ - -s "/bin/sh" -d "${DATADIR}" -c "MUD Owner" + -s "/bin/sh" -d "/nonexistent" -c "MUD Owner" then echo "Added user \"${USER}\"." else @@ -45,5 +35,3 @@ else exit 1 fi fi - -chown -R "${USER}:${GROUP}" "${DATADIR}" |