]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Only add `--nobest` for CentOS 8.
authoraerique <aerique@xs4all.nl>
Fri, 17 Jul 2020 09:00:03 +0000 (11:00 +0200)
committeraerique <aerique@xs4all.nl>
Fri, 17 Jul 2020 09:00:03 +0000 (11:00 +0200)
build-scripts/docker/generate-repo-files.sh

index ef6f868f59d621912c95edaf18cf91843f251a03..f9cdeb7b019c9e27389fa9410eda461bb0f99470 100755 (executable)
@@ -38,6 +38,12 @@ write_centos()
     PKG=$2
     CMD=$3
 
+    if [ "$VERSION" = "8" ]; then
+        CENTOS8_FLAGS="--nobest"
+    else
+        CENTOS8_FLAGS=""
+    fi
+
     cat <<EOF > Dockerfile.$RELEASE.$OS-$VERSION
 FROM $OS:$VERSION
 
@@ -57,7 +63,7 @@ EOF
 
     cat <<EOF >> 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