Skip to content

Commit

Permalink
nixos/traefik: owner/group should be changed recursivly
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Oct 4, 2017
1 parent 0625110 commit a320034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nixos/modules/services/web-servers/traefik.nix
Expand Up @@ -82,7 +82,8 @@ in {
ExecStart = ''${cfg.package.bin}/bin/traefik --configfile=${configFile}'';
ExecStartPre = [
''${pkgs.coreutils}/bin/mkdir -p "${cfg.dataDir}"''
''${pkgs.coreutils}/bin/install -d -m700 --owner traefik --group traefik "${cfg.dataDir}"''
''${pkgs.coreutils}/bin/chmod 700 "${cfg.dataDir}"''
''${pkgs.coreutils}/bin/chown -R traefik:traefik "${cfg.dataDir}"''
];
Type = "simple";
User = "traefik";
Expand Down

0 comments on commit a320034

Please sign in to comment.