mirror of https://github.com/mikaku/Monitorix.git
fixed to set permissions 0600 to log files
This commit is contained in:
parent
9dec96237d
commit
a812931056
2
Changes
2
Changes
|
@ -30,6 +30,8 @@
|
||||||
(thanks to Sander Bos for pointing this out)
|
(thanks to Sander Bos for pointing this out)
|
||||||
- Fixed to disable 'echo' when typing the password in './htpasswd.pl'.
|
- Fixed to disable 'echo' when typing the password in './htpasswd.pl'.
|
||||||
(thanks to Sander Bos for pointing this out)
|
(thanks to Sander Bos for pointing this out)
|
||||||
|
- Fixed to set permissions 0600 to log files.
|
||||||
|
(thanks to Sander Bos for pointing this out)
|
||||||
|
|
||||||
|
|
||||||
3.10.0 - 25-Sep-2017
|
3.10.0 - 25-Sep-2017
|
||||||
|
|
|
@ -82,12 +82,14 @@ sub HUP_handler {
|
||||||
close(STDERR);
|
close(STDERR);
|
||||||
open(STDOUT, ">> $config{log_file}") || logger("Can't write to LOG: $!");
|
open(STDOUT, ">> $config{log_file}") || logger("Can't write to LOG: $!");
|
||||||
open(STDERR, ">> $config{log_file}") || logger("Can't write to LOG: $!");
|
open(STDERR, ">> $config{log_file}") || logger("Can't write to LOG: $!");
|
||||||
|
chmod(0600, $config{log_file});
|
||||||
logger("$myself: opening a new log file.");
|
logger("$myself: opening a new log file.");
|
||||||
|
|
||||||
# create the HTTPd logfile
|
# create the HTTPd logfile
|
||||||
open(OUT, "> " . $config{httpd_builtin}->{log_file});
|
open(OUT, "> " . $config{httpd_builtin}->{log_file});
|
||||||
close(OUT);
|
close(OUT);
|
||||||
chown($uid, $gid, $config{httpd_builtin}->{log_file});
|
chown($uid, $gid, $config{httpd_builtin}->{log_file});
|
||||||
|
chmod(0600, $config{httpd_builtin}->{log_file});
|
||||||
}
|
}
|
||||||
|
|
||||||
sub daemonize {
|
sub daemonize {
|
||||||
|
|
Loading…
Reference in New Issue