Add support for checking incoming RabbitMQ version
Will be used to check if the current RabbitMQ version is high enough before upgrading to the new one. Change-Id: Ie133d6efc2e4c00002b8f0724e0183eaab35d1c5
This commit is contained in:
parent
3c130f290e
commit
36a7cd053d
@ -1,6 +1,6 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||||
{% block labels %}
|
{% block labels %}
|
||||||
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" version_check=true
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block rabbitmq_header %}{% endblock %}
|
{% block rabbitmq_header %}{% endblock %}
|
||||||
|
@ -24,3 +24,8 @@ fi
|
|||||||
if [[ $(stat -c %a ${RABBITMQ_LOG_DIR}) != "755" ]]; then
|
if [[ $(stat -c %a ${RABBITMQ_LOG_DIR}) != "755" ]]; then
|
||||||
chmod 755 ${RABBITMQ_LOG_DIR}
|
chmod 755 ${RABBITMQ_LOG_DIR}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${!KOLLA_RABBITMQ_VERSION_CHECK[@]}" ]]; then
|
||||||
|
rabbitmqctl --version
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user