Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 2021 06:38:08 GMT
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org
Subject:   git: ade023a359 - main - fix cgi permissions for the website
Message-ID:  <202105250638.14P6c87j005237@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=ade023a35909a87cfe9489eeb9b3bd3b096f3d93

commit ade023a35909a87cfe9489eeb9b3bd3b096f3d93
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2021-05-25 06:33:48 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2021-05-25 06:37:35 +0000

    fix cgi permissions for the website
    
    PR: 256106
    Approved by:    se, philip, lwhsu
    Differential Revision: https://reviews.freebsd.org/D30406
---
 website/Makefile | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/website/Makefile b/website/Makefile
index cc4f66b22f..560c7b8d45 100644
--- a/website/Makefile
+++ b/website/Makefile
@@ -31,14 +31,21 @@ RUBYLIB =	../shared/lib
 .ORDER: starting-message generate-releases
 .ORDER: starting-message build
 .ORDER: generate-releases build
+.ORDER: build post-build
+.ORDER: post-build end-message
 
-all: starting-message generate-releases build
+all: starting-message generate-releases build post-build end-message
 run: starting-message generate-releases run-local
 
 starting-message: .PHONY
-	@echo ---------------------------------------------------------------
-	@echo                   Building the website
-	@echo ---------------------------------------------------------------
+	@echo "---------------------------------------------------------------"
+	@echo "Building the website started on $$(date)"
+	@echo "---------------------------------------------------------------"
+
+end-message: .PHONY
+	@echo "---------------------------------------------------------------"
+	@echo "Building the website completed on $$(date)"
+	@echo "---------------------------------------------------------------"
 
 generate-releases: .PHONY
 	${PYTHON_CMD} ./tools/releases-toml.py -p ./shared/releases.adoc
@@ -48,3 +55,9 @@ run-local: .PHONY
 
 build: .PHONY
 	${HUGO_CMD}
+
+post-build: cgi-permissions
+
+cgi-permissions:
+	@chmod 555 ./public/cgi/*.cgi
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105250638.14P6c87j005237>