Set user in uwsgi script

This commit is contained in:
Xavier Guimard 2018-03-26 06:52:10 +02:00
parent 9dceef0e0f
commit 9181824755
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -3,3 +3,5 @@ uwsgi:
socket: 127.0.0.1:5000
psgi: __APPDIR__/llng-server.psgi
master: true
uid: __UID__
gid: __GID__