Allow installing website as an unprivileged user.

Reviewed by:	hrs
Approved by:	doceng (implicit)
This commit is contained in:
Warren Block 2015-07-23 02:51:10 +00:00
parent 4f85e40164
commit dfe61c9435
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47051

View file

@ -11,6 +11,7 @@
# clean -- remove anything generated by processing
#
.include "doc.install.mk"
.include "doc.commands.mk"
.if exists(${.CURDIR}/../Makefile.inc)
@ -24,17 +25,17 @@ DESTDIR?= ${HOME}/public_html
_ID?= /usr/bin/id
_UID!= ${_ID} -u
WEBOWN?= ${USER}
WEBOWN?= ${USERNAME}
.if (${_UID} > 0)
WEBGRP?= ${USER}
WEBGRP?= ${GROUPNAME}
.else
WEBGRP?= www
.endif
WEBMODE?= 664
CGIOWN?= ${USER}
CGIOWN?= ${USERNAME}
.if (${_UID} > 0)
CGIGRP?= ${USER}
CGIGRP?= ${GROUPNAME}
.else
CGIGRP?= www
.endif