Skip to content

Commit c26fb8c

Browse files
committed
Check for RHEL a different way
1 parent 79213a2 commit c26fb8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WORKDIR $APP_ROOT
1414

1515
# install postgresql from centos if not building on RHEL host
1616
RUN ON_RHEL=$(microdnf repolist --enabled | grep rhel) ; \
17-
if [[ ! -f /activation-key && -z "$ON_RHEL" ]] ; then \
17+
if [[ -z "$ON_RHEL" ]] ; then \
1818
rpm -Uvh http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-35.el9.noarch.rpm \
1919
http://mirror.stream.centos.org/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-35.el9.noarch.rpm && \
2020
sed -i 's/^\(enabled.*\)/\1\npriority=200/;' /etc/yum.repos.d/centos*.repo ; \

0 commit comments

Comments
 (0)