Commit 1c1b499a authored by Taddeus Kroes's avatar Taddeus Kroes

HTTPDUSER is now a configurable Makefile variable

parent a678daf6
......@@ -6,3 +6,4 @@ vendor/
www/js/
www/css/
config.local.json
config.mk
......@@ -3,7 +3,8 @@ WWW_DIR := www
LIB_DIR := vendor
SCRIPTS := forms scores
STYLES := main
HTTPDUSER := www-data
include config.mk # defines HTTPDUSER
SCRIPTS := $(patsubst %,$(WWW_DIR)/js/%.js,$(SCRIPTS))
STYLES := $(patsubst %,$(WWW_DIR)/css/%.css,$(STYLES))
......@@ -39,7 +40,7 @@ min: all
$(CACHE_DIR):
mkdir $@
setfacl -R -m u:"$(HTTPDUSER)":rwX $@
setfacl -R -m u:$(HTTPDUSER):rwX -- $@
clean:
rm -f $(SCRIPTS) $(STYLES) *.bak
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment