Skip to content

Commit 3be5458

Browse files
committed
Still check for stackhpc repos in footer
1 parent be9efd1 commit 3be5458

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

etc/kayobe/kolla.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -353,21 +353,21 @@ kolla_build_blocks:
353353
{% if kolla_base_distro in ['centos', 'rocky'] %}
354354
RUN \
355355
if [ -f /etc/yum.repos.d.backup/repos.tar.gz ]; then \
356-
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
357-
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
358-
echo "Found repository mirror in Yum repositories"; \
359-
exit 1; \
360-
fi && \
356+
tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d
361357
rm -rf /etc/yum.repos.d.backup/
362-
fi
358+
fi && \
359+
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
360+
echo "Found repository mirror in Yum repositories"; \
361+
exit 1; \
362+
fi && \
363363
{% else %}
364364
RUN \
365365
if [ -f /etc/apt/sources.list.backup ]; then \
366-
mv /etc/apt/sources.list.backup /etc/apt/sources.list && \
367-
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/apt/sources.list; then \
368-
echo "Found repository mirror in APT repositories"; \
369-
exit 1; \
370-
fi
366+
mv /etc/apt/sources.list.backup /etc/apt/sources.list
367+
fi && \
368+
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/apt/sources.list; then \
369+
echo "Found repository mirror in APT repositories"; \
370+
exit 1; \
371371
fi
372372
{% endif %}
373373
{% endif %}

0 commit comments

Comments
 (0)