Merge branch '14-IS_MONGO_BACKUP-add-a-break' of evolix/evocheck into master

This commit is contained in:
Benoît S. 2019-01-16 14:26:31 +01:00 committed by Gitea
commit 5a6234df17

View file

@ -658,6 +658,7 @@ if [ -e /etc/debian_version ]; then
if ! [[ "$file" =~ indexes ]]; then
if [ -f $file ] && [ $(stat -c "%Y" $file) -lt $(date +"%s" -d "now - 2 day") ]; then
echo 'IS_MONGO_BACKUP FAILED!'
break
fi
fi
done