diff options
author | glewis <glewis@FreeBSD.org> | 2003-09-03 13:17:33 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2003-09-03 13:17:33 +0800 |
commit | a985cc307153c36e1157acdb6b73a53af0f8c9d6 (patch) | |
tree | 79e0413b2f3f85f76c31ebdc5cbeef4b9ead3b7a /net/dgd | |
parent | c864fa8c399b858f21098e91ca9dc15e92d64015 (diff) | |
download | freebsd-ports-graphics-a985cc307153c36e1157acdb6b73a53af0f8c9d6.tar.gz freebsd-ports-graphics-a985cc307153c36e1157acdb6b73a53af0f8c9d6.tar.zst freebsd-ports-graphics-a985cc307153c36e1157acdb6b73a53af0f8c9d6.zip |
. Don't setup ${DATADIR} and in particular don't set the home directory
of the mud user to ${DATADIR} (but rather /nonexistent).
Diffstat (limited to 'net/dgd')
-rw-r--r-- | net/dgd/pkg-install | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/net/dgd/pkg-install b/net/dgd/pkg-install index 3af7c3e5da2..575cbe71489 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}" |