From 67256748a799f15a1eed6073deb07733121885af Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Thu, 20 Dec 2018 14:05:59 +0800 Subject: Fix uwsgi socket owner in rc.conf --- roles/git/tasks/main.yml | 1 + roles/radicale/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/git/tasks/main.yml b/roles/git/tasks/main.yml index ebd2ef3..4589ac6 100644 --- a/roles/git/tasks/main.yml +++ b/roles/git/tasks/main.yml @@ -176,6 +176,7 @@ uwsgi_profiles="${uwsgi_profiles} cgit" uwsgi_cgit_uid="git" uwsgi_cgit_gid="git" + uwsgi_cgit_socket_owner="git:www" uwsgi_cgit_flags="-L --log-reopen --logfile-chown --cgi /usr/local/www/cgit/cgit.cgi --env CGIT_CONFIG={{ git.cgit.root }}/cgitrc" notify: restart-cgit diff --git a/roles/radicale/tasks/main.yml b/roles/radicale/tasks/main.yml index 032a9d3..70b6330 100644 --- a/roles/radicale/tasks/main.yml +++ b/roles/radicale/tasks/main.yml @@ -80,6 +80,7 @@ uwsgi_profiles="${uwsgi_profiles} radicale" uwsgi_radicale_uid="radicale" uwsgi_radicale_gid="radicale" + uwsgi_radicale_socket_owner="radicale:www" uwsgi_radicale_flags="-L --log-reopen --logfile-chown --wsgi-file {{ radicale.wwwdir }}/radicale.wsgi --env RADICALE_CONFIG={{ radicale.etcdir }}/config" - name: enable and start uwsgi -- cgit v1.2.2