aboutsummaryrefslogtreecommitdiff
path: root/www/apache20
diff options
context:
space:
mode:
authorClement Laforet <clement@FreeBSD.org>2004-04-07 14:27:47 +0000
committerClement Laforet <clement@FreeBSD.org>2004-04-07 14:27:47 +0000
commitc7cb8394d26cb07e4265f4c7fc8710c740563325 (patch)
treeb1ba966ff9954533b1b9ab912e226f2449e6c1e1 /www/apache20
parent2b966353409f9155a1359537163d0f43dc346bdf (diff)
downloadports-c7cb8394d26cb07e4265f4c7fc8710c740563325.tar.gz
ports-c7cb8394d26cb07e4265f4c7fc8710c740563325.zip
Notes
Diffstat (limited to 'www/apache20')
-rw-r--r--www/apache20/pkg-install24
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