From 72831ee38620e878f196c452063ec70e6cb35384 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 28 Mar 2021 16:44:01 +0200 Subject: [PATCH] nodes/home.nas: one cronjob for permissions instead of three --- nodes/home/nas.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 73979ff..eba9f9f 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -41,9 +41,10 @@ nodes['home.nas'] = { }, 'cron': { # Ensure every user is able to read and write to the NAS dataset. - 'chown_nas': '0 3 * * * root chown -R :nas /storage/nas/', - 'chmod_nas_directories': '0 4 * * * root find /storage/nas/ -type d -exec chmod 0775 {} \;', - 'chmod_nas_files': '0 4 * * * root find /storage/nas/ -type f -exec chmod 0664 {} \;', + 'nas_permissions': '0 3 * * * root ' + 'chown -R :nas /storage/nas/ && ' + 'find /storage/nas/ -type d -exec chmod 0775 {} \; && ' + 'find /storage/nas/ -type f -exec chmod 0664 {} \;', }, 'groups': { 'nas': {},