Skip to content

Commit

Permalink
ncm-network: allow NetworkManager configuration for EL9 compatibility…
Browse files Browse the repository at this point in the history
…, 2nd try
  • Loading branch information
victor-mendoza committed May 5, 2023
1 parent 7040e37 commit 96f4fd5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions ncm-network/src/main/perl/network.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2148,10 +2148,8 @@ sub Configure
# 1. stop everythig using old config
# 2. replace updated/new config; remove REMOVE
# 3. (re)start things
my $service_name;
if ($self->_is_executable($CHKCONFIG_CMD)) {
$service_name = "network";
} elsif (defined($allow_nm) && $allow_nm) {
my $service_name = "network";
if (!$self->_is_executable($CHKCONFIG_CMD) && defined($allow_nm) && $allow_nm) {
$service_name = "NetworkManager";
} else {
$self->error("chkconfig unavailable, NetworkManager not allowed");
Expand Down

0 comments on commit 96f4fd5

Please sign in to comment.