it was a bad idea
Some checks failed
continuous-integration/drone/push Build is failing

the backup dir should stay conventional, in /home/backup.
we should deal with "system files moved elsewhere" in a different way
This commit is contained in:
Jérémy Lecour 2019-11-07 13:28:32 +01:00 committed by Jérémy Lecour
parent ff10ae4ad4
commit 21e0c79570

View file

@ -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