From 8e9097a8c1bed0bb537e2a5a7887681b5efe7b24 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Mon, 7 Feb 2022 07:01:50 +0100 Subject: [PATCH] home.nas: split nas_permissions timer to multiple commands --- nodes/home/nas.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nodes/home/nas.py b/nodes/home/nas.py index f212665..0373bc1 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -181,9 +181,11 @@ nodes['home.nas'] = { 'timers': { # Ensure every user is able to read and write to the NAS dataset. 'nas_permissions': { - 'command': 'chown -R :nas /storage/nas/ && ' - 'find /storage/nas/ -type d -exec chmod 0775 {} \; && ' + 'command': [ + 'chown -R :nas /storage/nas/', + 'find /storage/nas/ -type d -exec chmod 0775 {} \;', 'find /storage/nas/ -type f -exec chmod 0664 {} \;', + ], 'when': '*-*-* 03:00:00', }, 'nas_mixcloud': {