Merge "Skydive: Add log directory"
This commit is contained in:
commit
06d0c29a3e
@ -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 %}
|
||||
|
8
docker/skydive/skydive-base/extend_start.sh
Normal file
8
docker/skydive/skydive-base/extend_start.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user