Doesn't work for remote server on AWS #279
This commit is contained in:
parent
7a0565d9e5
commit
4d20ffea0c
1 changed files with 6 additions and 0 deletions
|
@ -1111,6 +1111,12 @@ sub log_file_recommandations {
|
|||
} else {
|
||||
badprint "Log file $myvar{'log_error'} doesn't exist";
|
||||
}
|
||||
if (-r "$myvar{'log_error'}") {
|
||||
goodprint "Log file $myvar{'log_error'} is readable.";
|
||||
} else {
|
||||
badprint "Log file $myvar{'log_error'} isn't readable.";
|
||||
return;
|
||||
}
|
||||
if ( (stat $myvar{'log_error'})[7] > 0) {
|
||||
goodprint "Log file $myvar{'log_error'} is not empty";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue