From: aerique Date: Fri, 17 Jul 2020 09:00:03 +0000 (+0200) Subject: Only add `--nobest` for CentOS 8. X-Git-Tag: dnsdist-1.5.0~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca0201f63c94182e7a72cd50c7f8312c1c801c8;p=thirdparty%2Fpdns.git Only add `--nobest` for CentOS 8. --- diff --git a/build-scripts/docker/generate-repo-files.sh b/build-scripts/docker/generate-repo-files.sh index ef6f868f59..f9cdeb7b01 100755 --- a/build-scripts/docker/generate-repo-files.sh +++ b/build-scripts/docker/generate-repo-files.sh @@ -38,6 +38,12 @@ write_centos() PKG=$2 CMD=$3 + if [ "$VERSION" = "8" ]; then + CENTOS8_FLAGS="--nobest" + else + CENTOS8_FLAGS="" + fi + cat < Dockerfile.$RELEASE.$OS-$VERSION FROM $OS:$VERSION @@ -57,7 +63,7 @@ EOF cat <> Dockerfile.$RELEASE.$OS-$VERSION RUN curl -o /etc/yum.repos.d/powerdns-$RELEASE.repo https://repo.powerdns.com/repo-files/$OS-$RELEASE.repo -RUN yum install --assumeyes --nobest $PKG +RUN yum install --assumeyes $CENTOS8_FLAGS $PKG EOF if [ "$RELEASE" = "rec-43" -o "$RELEASE" = "rec-44" ]; then