Commit f29724ddb21338a19111c7599f4b9615eb74ab1f

Stefan Sperling 2020-01-28T09:40:28

create dir for public repos during 'make web-install'; avoids an unveil error

diff --git a/Makefile.inc b/Makefile.inc
index cb06f08..13f04a9 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -41,6 +41,7 @@ TMP_DIR =	${CHROOT_DIR}/tmp
 PROG_DIR =	${HTTPD_DIR}/${PROG}
 CGI_DIR =	${CHROOT_DIR}${GOTWEB_DIR}
 TMPL_DIR =	${CGI_DIR}/gw_tmpl
+PUB_REPOS_DIR =	${CHROOT_DIR}/got/public
 WWWUSR ?=	www
 WWWGRP ?=	www
 .endif
diff --git a/gotweb/Makefile b/gotweb/Makefile
index aa9e7e6..4f2ae4e 100644
--- a/gotweb/Makefile
+++ b/gotweb/Makefile
@@ -26,6 +26,9 @@ realinstall:
 	if [ ! -d ${CGI_DIR}/. ]; then \
 		${INSTALL} -d -o root -g daemon -m 755 ${CGI_DIR}; \
 	fi
+	if [ ! -d ${PUB_REPOS_DIR}/. ]; then \
+		${INSTALL} -d -o root -g daemon -m 755 ${PUB_REPOS_DIR}; \
+	fi
 	${INSTALL} -c -o ${WWWUSR} -g ${WWWGRP} -m 0755 ${PROG} \
 	    ${CGI_DIR}/${PROG}
 	if [ ! -d ${TMPL_DIR}/. ]; then \