mirror of https://github.com/mikaku/Monitorix.git
fixed to set permissions 0600 to HTTP built-in log files
This commit is contained in:
parent
e7bd235cb3
commit
d81c5282de
|
@ -133,6 +133,7 @@ sub httpd_setup {
|
||||||
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});
|
||||||
|
|
||||||
setgid($gid);
|
setgid($gid);
|
||||||
if(getgid() != $gid) {
|
if(getgid() != $gid) {
|
||||||
|
|
Loading…
Reference in New Issue