File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -814,11 +814,14 @@ SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT=${SERVICE_GRACEFUL_SHUTDOWN_TIMEOUT:-5}
814814# Service graceful shutdown timeout
815815WORKER_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# --------------------
You can’t perform that action at this time.
0 commit comments