File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -353,21 +353,21 @@ kolla_build_blocks:
353
353
{% if kolla_base_distro in ['centos', 'rocky'] %}
354
354
RUN \
355
355
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
361
357
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 && \
363
363
{% else %}
364
364
RUN \
365
365
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; \
371
371
fi
372
372
{% endif %}
373
373
{% endif %}
You can’t perform that action at this time.
0 commit comments