* Added check to disable/stop firewalld if running when anvil-daemon starts.

Signed-off-by: Digimer <digimer@alteeve.ca>
main
Digimer 2 years ago
parent 508e278359
commit 3343ecaf9f
  1. 13
      Anvil/Tools/Network.pm

@ -2969,6 +2969,19 @@ sub manage_firewall
zone => $zone
}});
### TODO: Remove when fixed.
my $firewalld_running = $anvil->System->check_daemon({daemon => $anvil->data->{sys}{daemon}{firewalld}});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { firewalld_running => $firewalld_running }});
if ($firewalld_running)
{
# Disable and stop.
$anvil->System->disable_daemon({
now => 1,
daemon => $anvil->data->{sys}{daemon}{firewalld}.
});
}
return(0);
# Before we do anything, is the firewall even running?

Loading…
Cancel
Save