Fix check_zimbra_sudo

This commit is contained in:
Daniel Berteaud 2022-01-24 11:01:03 +01:00
parent 56fcaf7f6c
commit e0d2825f21
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ my $output = {};
if (defined $status){
foreach my $line (qx($zmcontrol status)){
if ($line =~ m/^\s+(\w+)(\swebapp)?\s+(Running|Stopped)/){
$output->{$1} = ($2 eq 'Running') ? 1 : 0;
$output->{$1} = ($3 eq 'Running') ? 1 : 0;
}
}
if ($status eq 'all'){