summaryrefslogtreecommitdiff
path: root/net/dgd-lpmud
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-09-03 05:15:55 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-09-03 05:15:55 +0000
commite3a46e78983dcfcdd5ad3361c2ef51f8ec898ad6 (patch)
treeaaba7af9080ff03b4b808e9ae5d5cca9247fd0e5 /net/dgd-lpmud
parent- Update to 1.1 (diff)
. Use the correct UID for the mud user.
. Don't setup ${DATADIR} and in particular don't set the home directory of the mud user to ${DATADIR} (but rather /nonexistent).
Notes
Notes: svn path=/head/; revision=88403
Diffstat (limited to 'net/dgd-lpmud')
-rw-r--r--net/dgd-lpmud/pkg-install16
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}"