backups: no need to recursively apply ownership/mode changes

Also, once the backup grows too large, the systemd service will
timeout in the startup phase while applying the ownership changes.
This commit is contained in:
Peter Jones 2019-11-04 11:01:46 -07:00
parent 374abe15ca
commit 81e1aba674
No known key found for this signature in database
GPG key ID: 9DAFAA8D01941E49

View file

@ -119,8 +119,8 @@ let
preStart = ''
mkdir -p "${opts.localdir}"
chown -R ${cfg.user}:${cfg.group} "${opts.localdir}"
chmod -R 0700 "${opts.localdir}"
chown ${cfg.user}:${cfg.group} "${opts.localdir}"
chmod 0700 "${opts.localdir}"
'';
script = ''