Fix for failure to re-start DNS BIND on slave servers

See https://github.com/virtualmin/virtualmin-gpl/issues/565
This commit is contained in:
John Heenan
2023-05-25 14:23:04 +10:00
parent 1f28b054fe
commit 102da88262

View File

@@ -3022,7 +3022,7 @@ my %on = map { $_, 1 } @{$_[0]};
&remote_error_setup(\&slave_error_handler);
my @slaveerrs;
foreach my $slave (&list_slave_servers()) {
next if (%on && !$on{$slave->{'host'}});
next if (%on && !$on{$slave->{'nsname'}});
# Find the PID file
$slave_error = undef;