Changed pandora_server.error perms to 664

This commit is contained in:
Arturo Gonzalez 2017-05-29 10:34:42 +02:00
parent 6bf672a846
commit 369bbfba7f
1 changed files with 2 additions and 0 deletions

View File

@ -1085,6 +1085,8 @@ sub pandora_start_log ($){
# Dump all errors to errorlog
open (STDERR, ">> " . $pa_config->{'errorlog_file'}) or die " [ERROR] Pandora FMS can't write to Errorlog. Aborting : \n $! \n";
my $mode = 0664;
chmod $mode, $pa_config->{'errorlog_file'};
print STDERR strftime ("%Y-%m-%d %H:%M:%S", localtime()) . ' - ' . $pa_config->{'servername'} . " Starting Pandora FMS Server. Error logging activated.\n";
}