Merge "Skydive: Add log directory"

This commit is contained in:
Jenkins 2017-08-09 12:08:04 +00:00 committed by Gerrit Code Review
commit 06d0c29a3e
2 changed files with 11 additions and 0 deletions

View File

@ -16,5 +16,8 @@ RUN curl -o /usr/bin/skydive -L "https://github.com/skydive-project/skydive/rele
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block skydive_base_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -0,0 +1,8 @@
#!/bin/bash
if [[ ! -d "/var/log/kolla/skydive" ]]; then
mkdir -p /var/log/kolla/skydive
fi
if [[ $(stat -c %a /var/log/kolla/skydive) != "755" ]]; then
chmod 755 /var/log/kolla/skydive
fi