fix indentation

master
Heuzef 5 years ago
parent d05196b767
commit a9721b0c36
  1. 11
      Check.pm

@ -112,8 +112,7 @@ sub action
# If Backup is disable # If Backup is disable
if ( $Conf{BackupsDisable} == 1 ) { if ( $Conf{BackupsDisable} == 1 ) {
if ( $Status{$host}{state} ne "Status_backup_in_progress" if ( $Status{$host}{state} ne "Status_backup_in_progress" && $Status{$host}{state} ne "Status_restore_in_progress" ) {
&& $Status{$host}{state} ne "Status_restore_in_progress" ) {
$reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_OnlyManualBackups}; $reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_OnlyManualBackups};
$tempState = "Disabled_OnlyManualBackups"; $tempState = "Disabled_OnlyManualBackups";
$tempReason = ""; $tempReason = "";
@ -121,15 +120,15 @@ if ( $Conf{BackupsDisable} == 1 ) {
$tempState = $Status{$host}{state}; $tempState = $Status{$host}{state};
$tempReason = $Status{$host}{reason}; $tempReason = $Status{$host}{reason};
} }
} elsif ($Conf{BackupsDisable} == 2 ) { } elsif ($Conf{BackupsDisable} == 2 ) {
$reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_AllBackupsDisabled}; $reasonHilite = $Conf{CgiStatusHilightColor}{Disabled_AllBackupsDisabled};
$tempState = "Disabled_AllBackupsDisabled"; $tempState = "Disabled_AllBackupsDisabled";
$tempReason = ""; $tempReason = "";
} else { } else {
$tempState = $Status{$host}{state}; $tempState = $Status{$host}{state};
$tempReason = $Status{$host}{reason}; $tempReason = $Status{$host}{reason};
} }
$reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" ); $reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" );
if ( $tempState ne "Status_backup_in_progress" if ( $tempState ne "Status_backup_in_progress"
&& $tempState ne "Status_restore_in_progress" && $tempState ne "Status_restore_in_progress"
&& $Conf{BackupsDisable} == 0 && $Conf{BackupsDisable} == 0

Loading…
Cancel
Save