aboutsummaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
parent9d4b2d643dac58abb1af04ba3cf6014645762216 (diff)
downloadgpigeon-23c6d4753895870224209a44624c1350e934f762.tar.gz
gpigeon-23c6d4753895870224209a44624c1350e934f762.zip
add chowning in the Makefile and WWWUSER var
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 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 ;\