aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Lionel <lionel@les-miquelots.net>2021-06-27 18:56:47 +0100
committerMiquel Lionel <lionelmiquel@sfr.fr>2021-06-27 18:56:47 +0100
commit23c6d4753895870224209a44624c1350e934f762 (patch)
treecf48929b2514829fbbc5e2d71662ea686214df1e
parent9d4b2d643dac58abb1af04ba3cf6014645762216 (diff)
downloadgpigeon-23c6d4753895870224209a44624c1350e934f762.tar.gz
gpigeon-23c6d4753895870224209a44624c1350e934f762.zip
add chowning in the Makefile and WWWUSER var
-rw-r--r--Makefile2
-rw-r--r--config.def.mk3
2 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c57612..24b9489 100644
--- a/Makefile
+++ b/Makefile
@@ -149,6 +149,8 @@ install:
printf "\nInstalling $(WWWDOMAIN).conf into $(NGINXCONFDIR)\n";\
install -Dm644 $(WWWDOMAIN).conf -t $(DESTDIR)$(NGINXCONFDIR);\
fi
+ chown $(WWWUSER):$(WWWUSER) -R $(DESTDIR)$(PREFIX)/gpigeon || exit 1;
+ chown $(WWWUSER):$(WWWUSER) -R $(DESTDIR)$(WWWPREFIX)/gpigeon || exit 1;
nginxconf: nginx-example.conf
@sed -e 's|wwwpath_goes_here|$(WWWPREFIX)|g;s|domain_goes_here|$(WWWDOMAIN)|g' nginx-example.conf > $(WWWDOMAIN).conf ;\
diff --git a/config.def.mk b/config.def.mk
index 7ff7d0c..b02f14f 100644
--- a/config.def.mk
+++ b/config.def.mk
@@ -8,6 +8,9 @@ LINK_TEMPLATE_PATH = $(PREFIX)/link-tmpl.cgi
WWWPREFIX = /var/www
GPIGEON_PATH = $(WWWPREFIX)/cgi-bin/gpigeon.cgi
+# system stuff
+WEBUSER=www-data #it must match up with your nginx user. For ex. on arch it's 'http'
+
# CGI tuning stuff
MSG_FORM_CHAR_LIMIT = 3000