Collectd: ignore failure of disabling epel repos
https://review.opendev.org/#/c/710822/ added disabling of epel and epel-modular repos. There are cases when epel repos are not setup in that case dnf config-manager will fail. Let's ignore the failure in such cases. This change is needed only for Train branch. Partially-Implements: blueprint centos-rhel-8 Change-Id: I4aeb3971b82d461a305264490e829aaacfac9b24
This commit is contained in:
parent
169b3aa7c3
commit
34fce6c3d6
|
@ -85,7 +85,7 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
|
|||
{% endif %}
|
||||
{% if distro_package_manager == 'dnf' %}
|
||||
# make sure, collectd is pulled from centos-opstools
|
||||
RUN dnf config-manager --disable epel epel-modular
|
||||
RUN dnf config-manager --disable epel epel-modular || true
|
||||
{% elif distro_package_manager == 'yum' %}
|
||||
# make sure, collectd is pulled from centos-opstools
|
||||
RUN yum-config-manager --disable epel
|
||||
|
|
Loading…
Reference in New Issue