Merge pull request #24532 from nh2/fix-24529-acme-dir-permissions-master

acme: Use `chown -R` for challenges directory. Fixes #24529.
This commit is contained in:
Domen Kožar 2017-04-01 15:23:43 +02:00 committed by GitHub
commit 0cc0f2d465

View File

@ -178,7 +178,7 @@ in
path = [ pkgs.simp_le ];
preStart = ''
mkdir -p '${cfg.directory}'
chown '${data.user}:${data.group}' '${cfg.directory}'
chown -R '${data.user}:${data.group}' '${cfg.directory}'
if [ ! -d '${cpath}' ]; then
mkdir '${cpath}'
fi