Allow installing website as an unprivileged user.
Reviewed by: hrs Approved by: doceng (implicit)
This commit is contained in:
parent
4f85e40164
commit
dfe61c9435
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=47051
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue