Skip to content

Commit 6110f40

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Switch to dnf when it exists"
2 parents 5e3a294 + 7f33552 commit 6110f40

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

stackrc

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,14 @@ SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT=${SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT:-5}
814814
# Service graceful shutdown timeout
815815
WORKER_TIMEOUT=${WORKER_TIMEOUT:-90}
816816

817-
# Support alternative yum -- in future Fedora 'dnf' will become the
818-
# only supported installer, but for now 'yum' and 'dnf' are both
819-
# available in parallel with compatible CLIs. Allow manual switching
820-
# till we get to the point we need to handle this automatically
821-
YUM=${YUM:-yum}
817+
# Choose DNF on RedHat/Fedora platforms with it, or otherwise default
818+
# to YUM. Can remove this when only dnf is supported (i.e. centos7
819+
# disappears)
820+
if [[ -e /usr/bin/dnf ]]; then
821+
YUM=${YUM:-dnf}
822+
else
823+
YUM=${YUM:-yum}
824+
fi
822825

823826
# Common Configuration
824827
# --------------------

0 commit comments

Comments
 (0)