aboutsummaryrefslogtreecommitdiff
path: root/net/dgd/pkg-install
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2003-09-03 05:17:33 +0000
committerGreg Lewis <glewis@FreeBSD.org>2003-09-03 05:17:33 +0000
commit0ea04986a0976c494d92732e7db04470c23fad9d (patch)
tree6654cb445ca06feb88dfcc5d52e36312571d83a7 /net/dgd/pkg-install
parente3a46e78983dcfcdd5ad3361c2ef51f8ec898ad6 (diff)
downloadports-0ea04986a0976c494d92732e7db04470c23fad9d.tar.gz
ports-0ea04986a0976c494d92732e7db04470c23fad9d.zip
. 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=88404
Diffstat (limited to 'net/dgd/pkg-install')
-rw-r--r--net/dgd/pkg-install21
1 files changed, 1 insertions, 20 deletions
diff --git a/net/dgd/pkg-install b/net/dgd/pkg-install
index 3af7c3e5da20..575cbe714897 100644
--- a/net/dgd/pkg-install
+++ b/net/dgd/pkg-install
@@ -12,16 +12,6 @@ GROUP=${USER}
UID=97
GID=${UID}
-if [ -z "${DATADIR}" ]; then
- DATADIR=${PKG_PREFIX}/share/dgd
-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
@@ -35,16 +25,9 @@ fi
if pw usershow "${USER}" 2>/dev/null; then
echo "Using existing user \"${USER}\"."
- if pw usermod "${USER}" -d "${DATADIR}"
- then
- echo "Changed home directory of \"${USER}\" to \"${DATADIR}\""
- else
- echo "Changing home directory of \"${USER}\" to \"${DATADIR}\" failed..."
- exit 1
- fi
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
@@ -52,5 +35,3 @@ else
exit 1
fi
fi
-
-chown -R "${USER}:${GROUP}" "${DATADIR}"