Fix kuryr container

Add log directory,add missing chmod 755 /usr/local/bin/kolla_extend_start

Closes-Bug: #1655250
Change-Id: Iaebd5935063a4420d093abd6815d20e704be170b
This commit is contained in:
zhubingbing 2017-01-10 05:57:51 +00:00
parent 95bb052fe7
commit d459d80b9e
2 changed files with 10 additions and 0 deletions

View File

@ -20,5 +20,6 @@ RUN ln -s kuryr-base-source/* kuryr-base \
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block kuryr_base_footer %}{% endblock %}

View File

@ -1,5 +1,14 @@
#!/bin/bash
KURYR_LOG_DIR=/var/log/kolla/kuryr
if [[ ! -d "${KURYR_LOG_DIR}" ]]; then
mkdir -p ${KURYR_LOG_DIR}
fi
if [[ $(stat -c %a ${KURYR_LOG_DIR}) != "755" ]]; then
chmod 755 ${KURYR_LOG_DIR}
fi
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
mkdir -p /usr/lib/docker/plugins/kuryr
exit 0