Skip to content
Snippets Groups Projects
Commit 63fd5627 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Remove duplicate code in magnum extend_start.sh"

parents 8a3a5e7f feca4a3f
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,8 @@ RUN yum -y install openstack-magnum-api \ ...@@ -10,8 +10,8 @@ RUN yum -y install openstack-magnum-api \
{% endif %} {% endif %}
{% endif %} {% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start COPY extend_start.sh /usr/local/bin/kolla_magnum_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start RUN chmod 755 /usr/local/bin/kolla_magnum_extend_start
{{ include_footer }} {{ include_footer }}
......
#!/bin/bash #!/bin/bash
if [[ ! -d "/var/log/kolla/magnum" ]]; then
mkdir -p /var/log/kolla/magnum
fi
if [[ $(stat -c %a /var/log/kolla/magnum) != "755" ]]; then
chmod 755 /var/log/kolla/magnum
fi
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases # Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty. # of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
......
...@@ -24,4 +24,5 @@ RUN ln -s magnum-base-source/* magnum \ ...@@ -24,4 +24,5 @@ RUN ln -s magnum-base-source/* magnum \
COPY extend_start.sh /usr/local/bin/kolla_extend_start COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN usermod -a -G kolla magnum \ RUN usermod -a -G kolla magnum \
&& chmod 755 /usr/local/bin/kolla_extend_start && touch /usr/local/bin/kolla_magnum_extend_start \
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_magnum_extend_start
...@@ -6,3 +6,5 @@ fi ...@@ -6,3 +6,5 @@ fi
if [[ $(stat -c %a /var/log/kolla/magnum) != "755" ]]; then if [[ $(stat -c %a /var/log/kolla/magnum) != "755" ]]; then
chmod 755 /var/log/kolla/magnum chmod 755 /var/log/kolla/magnum
fi fi
source /usr/local/bin/kolla_magnum_extend_start
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment