From 9181824755eacb5f6d40600529d18c904bf16a4d Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Mon, 26 Mar 2018 06:52:10 +0200 Subject: [PATCH] Set user in uwsgi script --- Makefile | 2 +- fastcgi-server/uwsgi/llng-server.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 732dd1e2f..2c7110355 100644 --- a/Makefile +++ b/Makefile @@ -637,7 +637,7 @@ install_uwsgi_server: @install -v -d $(RUWSGIYAMLDIR) $(RLLNGAPPDIR) @install -m 644 -v fastcgi-server/uwsgi/llng-server.yaml $(RUWSGIYAMLDIR)/llng-server.yaml @install -m 644 -v $(SRCHANDLERDIR)/eg/llng-server.psgi $(RLLNGAPPDIR)/llng-server.psgi - $(PERL) -pi -e 's#__APPDIR__#$(LLNGAPPDIR)#' $(RUWSGIYAMLDIR)/llng-server.yaml + $(PERL) -pi -e 's#__APPDIR__#$(LLNGAPPDIR)#;s#__UID__#$(UWSGIUSER)#;s#__GID__#$(UWSGIGROUP)#;' $(RUWSGIYAMLDIR)/llng-server.yaml # Site install diff --git a/fastcgi-server/uwsgi/llng-server.yaml b/fastcgi-server/uwsgi/llng-server.yaml index ea1a4c4ea..84079a31f 100644 --- a/fastcgi-server/uwsgi/llng-server.yaml +++ b/fastcgi-server/uwsgi/llng-server.yaml @@ -3,3 +3,5 @@ uwsgi: socket: 127.0.0.1:5000 psgi: __APPDIR__/llng-server.psgi master: true + uid: __UID__ + gid: __GID__