summary refs log tree commit diff
path: root/nixos/modules/security/acme.nix
diff options
context:
space:
mode:
authorDomen Kožar <domen@dev.si>2016-11-29 15:55:33 +0100
committerDomen Kožar <domen@dev.si>2016-11-29 15:56:01 +0100
commit75f131da02c00027b9a8240fb74d117cb0f9d9cf (patch)
tree4f5fe38662f4360743dd0b6039f770551ccb17fb /nixos/modules/security/acme.nix
parent69e0740baa7b354ee03e6ad1c6a0d4b685fdf1fa (diff)
downloadnixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar.gz
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar.bz2
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar.lz
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar.xz
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.tar.zst
nixlib-75f131da02c00027b9a8240fb74d117cb0f9d9cf.zip
acme: ensure nginx challenges directory is writeable
Diffstat (limited to 'nixos/modules/security/acme.nix')
-rw-r--r--nixos/modules/security/acme.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/security/acme.nix b/nixos/modules/security/acme.nix
index 12736e57b4a6..726e54711410 100644
--- a/nixos/modules/security/acme.nix
+++ b/nixos/modules/security/acme.nix
@@ -178,6 +178,7 @@ in
                   path = [ pkgs.simp_le ];
                   preStart = ''
                     mkdir -p '${cfg.directory}'
+                    chown '${data.user}:${data.group}' '${cfg.directory}'
                     if [ ! -d '${cpath}' ]; then
                       mkdir '${cpath}'
                     fi