diff options
author | clement <clement@FreeBSD.org> | 2004-04-07 22:27:47 +0800 |
---|---|---|
committer | clement <clement@FreeBSD.org> | 2004-04-07 22:27:47 +0800 |
commit | 6db362debec376473aa1ae5ac5df81716188ff59 (patch) | |
tree | 651df4b82cb4f99b7265ce5ca937b28b05e2488f /www/apache20/pkg-install | |
parent | fc0b6c26f89c33ea7b14394fe0e3c3726814817a (diff) | |
download | freebsd-ports-gnome-6db362debec376473aa1ae5ac5df81716188ff59.tar.gz freebsd-ports-gnome-6db362debec376473aa1ae5ac5df81716188ff59.tar.zst freebsd-ports-gnome-6db362debec376473aa1ae5ac5df81716188ff59.zip |
- Fix install when people use a different /bin/sh
This shouldn't have been fixed, but I don't like setting UID and GID
variables.
so ${*} -> ${WWW*}
PR: 64032
Noticed by: Patrick Schoenfeld <schoenfeld@in-medias-res.com>
Diffstat (limited to 'www/apache20/pkg-install')
-rw-r--r-- | www/apache20/pkg-install | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/www/apache20/pkg-install b/www/apache20/pkg-install index 3bb99133ae49..5910273e21e3 100644 --- a/www/apache20/pkg-install +++ b/www/apache20/pkg-install @@ -6,28 +6,28 @@ if [ "$2" != "PRE-INSTALL" ]; then exit 0 fi -USER=www -GROUP=${USER} -UID=80 -GID=${UID} +WWWUSER=www +WWWGROUP=${WWWUSER} +WWWUID=80 +WWWGID=${WWWUID} -if ! pw groupshow "${GROUP}" 2>/dev/null 1>&2; then - if pw groupadd ${GROUP} -g ${GID}; then - echo "Added group \"${GROUP}\"." +if ! pw groupshow "${WWWGROUP}" 2>/dev/null 1>&2; then + if pw groupadd ${WWWGROUP} -g ${WWWGID}; then + echo "Added group \"${WWWGROUP}\"." else - echo "Adding group \"${GROUP}\" failed..." + echo "Adding group \"${WWWGROUP}\" failed..." exit 1 fi fi -if ! pw usershow "${USER}" 2>/dev/null 1>&2; then - if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \ +if ! pw usershow "${WWWUSER}" 2>/dev/null 1>&2; then + if pw useradd ${WWWUSER} -u ${WWWUID} -g ${WWWGROUP} -h - \ -s "/sbin/nologin" -d "/nonexistent" \ -c "World Wide Web Owner"; \ then - echo "Added user \"${USER}\"." + echo "Added user \"${WWWUSER}\"." else - echo "Adding user \"${USER}\" failed..." + echo "Adding user \"${WWWUSER}\" failed..." exit 1 fi fi |