nodes/home.nas: one cronjob for permissions instead of three
All checks were successful
bundlewrap/pipeline/head This commit looks good

This commit is contained in:
Franzi 2021-03-28 16:44:01 +02:00
parent 7345543fa2
commit 72831ee386
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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': {},