File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -353,17 +353,17 @@ 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
- rm -rf /etc/yum.repos.d.backup/
356
+ tar -xzf /etc/yum.repos.d.backup/repos.tar.gz -C /etc/yum.repos.d && \
357
+ rm -rf /etc/yum.repos.d.backup/ \
358
358
fi && \
359
359
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/yum.repos.d; then \
360
360
echo "Found repository mirror in Yum repositories"; \
361
361
exit 1; \
362
- fi && \
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
366
+ mv /etc/apt/sources.list.backup /etc/apt/sources.list \
367
367
fi && \
368
368
if grep -r '{{ stackhpc_repo_mirror_url }}' /etc/apt/sources.list; then \
369
369
echo "Found repository mirror in APT repositories"; \
You can’t perform that action at this time.
0 commit comments