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:
parent
95bb052fe7
commit
d459d80b9e
|
@ -20,5 +20,6 @@ RUN ln -s kuryr-base-source/* kuryr-base \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
{% block kuryr_base_footer %}{% endblock %}
|
{% block kuryr_base_footer %}{% endblock %}
|
||||||
|
|
|
@ -1,5 +1,14 @@
|
||||||
#!/bin/bash
|
#!/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
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
mkdir -p /usr/lib/docker/plugins/kuryr
|
mkdir -p /usr/lib/docker/plugins/kuryr
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue