[cubicweb/uwsgi] only cache rights
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 15 Dec 2016 14:34:56 +0000
changeset 104 5ce3e4f5615e
parent 103 4ea00d8c15d1
child 105 a2756a92160c
[cubicweb/uwsgi] only cache rights
cubicweb/uwsgi/init.sls
--- a/cubicweb/uwsgi/init.sls	Tue Jan 17 17:41:19 2017 +0100
+++ b/cubicweb/uwsgi/init.sls	Thu Dec 15 14:34:56 2016 +0000
@@ -50,13 +50,15 @@
     - group: www-data
     - mode: "0750"
 
-/var/lib/cubicweb/instances/{{ name }}:
+    {% for dir in ('cache', 'uicache', 'uicachehttps') %}
+/var/lib/cubicweb/instances/{{ name }}/{{ dir }}:
   file.directory:
     - user: www-data
     - group: www-data
     - recurse:
       - user
       - group
+    {% endfor %}
   {% endfor %}
 {% endfor %}