fixed to set permissions 0600 to HTTP built-in log files

This commit is contained in:
Jordi Sanfeliu 2018-10-17 11:35:46 +02:00
parent e7bd235cb3
commit d81c5282de
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ sub httpd_setup {
open(OUT, ">> " . $config->{httpd_builtin}->{log_file});
close(OUT);
chown($uid, $gid, $config->{httpd_builtin}->{log_file});
chmod(0600, $config{httpd_builtin}->{log_file});
setgid($gid);
if(getgid() != $gid) {