From e27f3b017acb4f7e571f34747742b858bde49833 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 17 Mar 2019 15:25:21 +0000 Subject: modules/isync: fix permissions of directories too --- modules/workstation/mail/isync/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'modules/workstation/mail') diff --git a/modules/workstation/mail/isync/default.nix b/modules/workstation/mail/isync/default.nix index 3fcd2c6f8b35..cf05d9d8c32d 100644 --- a/modules/workstation/mail/isync/default.nix +++ b/modules/workstation/mail/isync/default.nix @@ -18,10 +18,15 @@ postStart = '' ${findutils}/bin/find \ "${maildir}" \ - -type f \ -not -name .mbsyncstate* \ -exec ${coreutils}/bin/chown qyliss:qyliss '{}' \; \ - -exec ${coreutils}/bin/chmod 0660 '{}' \; + \( \ + -type f \ + -exec ${coreutils}/bin/chmod 0660 '{}' \; \ + -or \ + -type d \ + -exec ${coreutils}/bin/chmod 0770 '{}' \; \ + \) ''; }; -- cgit 1.4.1