From 21e0c7957007dea858d70e45e01f278e3970eb46 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Thu, 7 Nov 2019 13:28:32 +0100 Subject: [PATCH] it was a bad idea the backup dir should stay conventional, in /home/backup. we should deal with "system files moved elsewhere" in a different way --- evocheck.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index b351081..faf8d6f 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -659,11 +659,7 @@ check_muninrunning() { } # Check if files in /home/backup/ are up-to-date check_backupuptodate() { - # find local backup directory - backup_dir=$(grep --no-messages 'LOCAL_BACKUP_DIR=' /etc/cron.daily/zzz_evobackup | tr -d \" | cut -d= -f2) - if [ -z "${backup_dir}" ]; then - backup_dir="/home/backup" - fi + backup_dir="/home/backup" if [ -d "${backup_dir}" ]; then if [ -n "$(ls -A ${backup_dir})" ]; then for file in ${backup_dir}/*; do