nixos/nginx: recursively change logs directory owner/group (#76174)

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)
This commit is contained in:
Yurii Izorkin 2019-12-26 14:51:10 +03:00 committed by Danylo Hlynskyi
parent 8b6bb39d39
commit b0bbacb521

View File

@ -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 = {