svn commit: r47051 - head/share/mk

Warren Block <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-doc-all
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.