Skip to content

Commit

Permalink
nixos/nginx: recursively change logs directory owner/group (#76174)
Browse files Browse the repository at this point in the history
This change brings pre-existing installations (where the logfiles
are owned by root) in line with the new permssions (where logfiles
are owned by the nginx user)
  • Loading branch information
Izorkin authored and danbst committed Dec 26, 2019
1 parent 8b6bb39 commit b0bbacb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nixos/modules/services/web-servers/nginx/default.nix
Expand Up @@ -671,6 +671,7 @@ in
systemd.tmpfiles.rules = [
"d '${cfg.stateDir}' 0750 ${cfg.user} ${cfg.group} - -"
"d '${cfg.stateDir}/logs' 0750 ${cfg.user} ${cfg.group} - -"
"Z '${cfg.stateDir}/logs' 0750 ${cfg.user} ${cfg.group} - -"
];

systemd.services.nginx = {
Expand Down

0 comments on commit b0bbacb

Please sign in to comment.