[uwsgi] makedirs to avoid error if previous steps fail
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 25 Jan 2017 16:57:46 +0100
changeset 106 52cc2be91e1d
parent 105 a2756a92160c
child 107 da63568b7447
[uwsgi] makedirs to avoid error if previous steps fail
cubicweb/uwsgi/init.sls
--- a/cubicweb/uwsgi/init.sls	Thu Jan 19 15:30:29 2017 +0100
+++ b/cubicweb/uwsgi/init.sls	Wed Jan 25 16:57:46 2017 +0100
@@ -49,12 +49,14 @@
   file.managed:
     - group: www-data
     - mode: "0750"
+    - makedirs: True
 
     {% for dir in ('cache', 'uicache', 'uicachehttps') %}
 /var/lib/cubicweb/instances/{{ name }}/{{ dir }}:
   file.directory:
     - user: www-data
     - group: www-data
+    - makedirs: True
     - recurse:
       - user
       - group