0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-17 19:22:40 +00:00

Fix yum config-manager check ()

This commit is contained in:
Linus 2022-01-18 11:02:04 +01:00 committed by GitHub
parent e91d1110e5
commit 74b56fa56f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1613,7 +1613,7 @@ validate_tree_centos() {
if [[ "${version}" =~ ^8(\..*)?$ ]]; then
echo >&2 " > Checking for config-manager ..."
if ! run yum ${sudo} config-manager; then
if ! run ${sudo} yum config-manager --help; then
if prompt "config-manager not found, shall I install it?"; then
run ${sudo} yum ${opts} install 'dnf-command(config-manager)'
fi