From e3578e669c90e5821a2649248765794aee185c45 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 12 Jun 2021 08:56:38 +0200 Subject: [PATCH] nodes/home.nas: add cronjob --- nodes/home/nas.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nodes/home/nas.py b/nodes/home/nas.py index 2af5b2c..08e8a13 100644 --- a/nodes/home/nas.py +++ b/nodes/home/nas.py @@ -51,6 +51,10 @@ nodes['home.nas'] = { 'chown -R :nas /storage/nas/ && ' 'find /storage/nas/ -type d -exec chmod 0775 {} \; && ' 'find /storage/nas/ -type f -exec chmod 0664 {} \;', + 'nas_mixcloud': vault.decrypt('encrypt$gAAAAABgxFkM0Zd8SOhk8aK_zsUY5S39FvyxvEq9TVnAK-ryn9qjrpziqUgNyPXFQBSUHPCV5DX6CW6iSQFGO54truPoaymdHFwchWh3u6bOar_h8x3er3I=').format_into( + '0 2 * * * kunsi ' + 'cd /storage/nas/Musik/Compilations && ' + 'wget --mirror --page-requisites --convert-links --domains {0} --execute robots=off https://{0}/'), }, 'groups': { 'nas': {},