]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
container/Containerfile fix boolean IS_RELEASE usage
authorDan Mick <dan.mick@redhat.com>
Wed, 20 Nov 2024 00:44:17 +0000 (16:44 -0800)
committerDan Mick <dan.mick@redhat.com>
Thu, 5 Dec 2024 08:10:54 +0000 (00:10 -0800)
Existing syntax was just wrong.

Signed-off-by: Dan Mick <dan.mick@redhat.com>
(cherry picked from commit ce74f14de5042774b8386b0eff04497b517eaacc)

container/Containerfile

index 7224028723d99c37961846b0edbd5a06c25d0f39..af843052e60e4b159638d1a9cd57df2f515d066a 100644 (file)
@@ -89,7 +89,7 @@ RUN set -x && \
         REPO_URL="https://${PRERELEASE_USERNAME}:${PRERELEASE_PASSWORD}@download.ceph.com/prerelease/ceph/rpm-${CEPH_REF}/el9/" ;\
     fi && \
     rpm -Uvh "$REPO_URL/noarch/ceph-release-1-${IS_RELEASE}.el9.noarch.rpm" ; \
-    if [[ IS_RELEASE ]] ; then \
+    if [[ "$IS_RELEASE" == 1 ]] ; then \
        sed -i "s;http://download.ceph.com/;https://${PRERELEASE_USERNAME}:${PRERELEASE_PASSWORD}@download.ceph.com/prerelease/ceph/;" /etc/yum.repos.d/ceph.repo ; \
        dnf clean expire-cache ; \
     fi