[cubicweb/uwsgi] fix permissions
authorArthur Lutz <arthur.lutz@logilab.fr>
Tue, 29 Nov 2016 16:36:47 +0100
changeset 98 fa2bd89a7e61
parent 97 970912575cb2
child 99 5020bcb8838c
[cubicweb/uwsgi] fix permissions
cubicweb/uwsgi/init.sls
--- a/cubicweb/uwsgi/init.sls	Tue Nov 29 16:29:55 2016 +0100
+++ b/cubicweb/uwsgi/init.sls	Tue Nov 29 16:36:47 2016 +0100
@@ -33,6 +33,16 @@
       - file: /etc/uwsgi/apps-available/{{ name }}.ini
     - watch:
       - service: uwsgi
+
+/etc/cubicweb.d/{{ name }}/sources:
+  file.managed:
+    - group: www-data
+    - mode: "0750"
+
+/var/lib/cubicweb/instances/{{ name }}/uicache:
+  file.directory:
+    - user: www-data
+    - group: www-data
   {% endfor %}
 {% endfor %}