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