From 8c4432cb803b653adee9adde2158d182b3b5820a Mon Sep 17 00:00:00 2001 From: ljf Date: Fri, 30 Sep 2022 01:26:09 +0200 Subject: [PATCH] [fix] Missing var in cron --- conf/monitor-backup | 2 +- manifest.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conf/monitor-backup b/conf/monitor-backup index 7ecc10b..dedb486 100644 --- a/conf/monitor-backup +++ b/conf/monitor-backup @@ -1,2 +1,2 @@ SHELL=/bin/bash -0 9,20 * * * root : Monitor __SSH_USER__ backup ; ALERT_DELAY="$(grep '^alert_delay: ' /etc/yunohost/apps/__APP__/settings.yml | awk -F\' '{print $2}')"; [[ $(find /home/__SSH_USER__/backup/data -follow -mtime -${ALERT_DELAY} -ls | wc -l) > 0 ]] || ( echo "No file has been backuped in /home/__SSH_USER__ since ${ALERT_DELAY} days" | mail -s "[YNH] Backup missing : __SSH_USER__" $(grep '^alert_mails: ' /etc/yunohost/apps/__APP__/settings.yml | awk '{print $2}')) +0 9,20 * * * root : Monitor __SSH_USER__ backup ; ALERT_DELAY="$(grep '^alert_delay: ' /etc/yunohost/apps/__APP__/settings.yml | awk -F\' '{print $2}')"; [[ $(find __DATADIR__/backup/data -follow -mtime -${ALERT_DELAY} -ls | wc -l) > 0 ]] || ( echo "No file has been backuped in __DATADIR__ since ${ALERT_DELAY} days" | mail -s "[YNH] Backup missing : __SSH_USER__" $(grep '^alert_mails: ' /etc/yunohost/apps/__APP__/settings.yml | awk '{print $2}')) diff --git a/manifest.json b/manifest.json index 0388c8a..9c86660 100644 --- a/manifest.json +++ b/manifest.json @@ -48,8 +48,8 @@ "name": "datadir", "type": "string", "ask": { - "en": "Indicate the directory where create the user directory with the borg archive", - "fr": "Indiquez le dossier où créer le dossier utilisateur contenant l'archive borg" + "en": "Indicate the path of the ssh user home directory where create the borg archive", + "fr": "Indiquez le chemin du dossier de l'utilisateur ssh où créer l'archive borg" }, "default": "/home/__SSH_USER__" },