Doesn't work for remote server on AWS #279

This commit is contained in:
root 2016-12-05 09:27:54 +01:00
parent 7a0565d9e5
commit 4d20ffea0c

View file

@ -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 {