[uwsgi/pyramid] more makedirs to avoid errors
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 25 Jan 2017 17:09:44 +0100
changeset 108 0a7ad23c847e
parent 107 da63568b7447
child 109 5a0680ce58de
[uwsgi/pyramid] more makedirs to avoid errors
cubicweb/pyramid/init.sls
cubicweb/uwsgi/init.sls
--- a/cubicweb/pyramid/init.sls	Wed Jan 25 17:05:27 2017 +0100
+++ b/cubicweb/pyramid/init.sls	Wed Jan 25 17:09:44 2017 +0100
@@ -8,6 +8,7 @@
   file.managed:
     - source: salt://cubicweb/pyramid/pyramid.ini
     - template: jinja
+    - makedirs: True
     - context:
         config: {{ config }}
         name: {{ name }}
--- a/cubicweb/uwsgi/init.sls	Wed Jan 25 17:05:27 2017 +0100
+++ b/cubicweb/uwsgi/init.sls	Wed Jan 25 17:09:44 2017 +0100
@@ -40,6 +40,7 @@
   file.managed:
     - name: {{ config.cwapp_uwsgi_options.file }}
     - source: salt://cubicweb/uwsgi/wsgiapp.py
+    - makedirs: True
     - template: jinja
     - group: www-data
 {% endif %}