svn commit: r47051 - head/share/mk

Warren Block wblock at FreeBSD.org
Thu Jul 23 02:51:12 UTC 2015


Author: wblock
Date: Thu Jul 23 02:51:10 2015
New Revision: 47051
URL: https://svnweb.freebsd.org/changeset/doc/47051

Log:
  Allow installing website as an unprivileged user.
  
  Reviewed by:	hrs
  Approved by:	doceng (implicit)

Modified:
  head/share/mk/web.site.mk

Modified: head/share/mk/web.site.mk
==============================================================================
--- head/share/mk/web.site.mk	Wed Jul 22 21:57:34 2015	(r47050)
+++ head/share/mk/web.site.mk	Thu Jul 23 02:51:10 2015	(r47051)
@@ -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


More information about the svn-doc-all mailing list