From 0dec7c654520cff2acc36b9f80a4175ce0024c04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20S?= Date: Fri, 9 Mar 2018 15:22:08 +0100 Subject: [PATCH] Fix #21. IS_EVOBACKUP was disabled and using bad grep pattern --- evocheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 6ee42f7..24f919d 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -98,6 +98,7 @@ IS_ELASTIC_BACKUP=1 IS_MONGO_BACKUP=1 IS_MOUNT_FSTAB=1 IS_NETWORK_INTERFACES=1 +IS_EVOBACKUP=1 #Proper to OpenBSD IS_SOFTDEP=1 @@ -426,7 +427,7 @@ if [ -e /etc/debian_version ]; then # Verification de la mise en place d'evobackup if [ "$IS_EVOBACKUP" = 1 ]; then - ls /etc/cron* |grep -q "zz.backup$" || echo 'IS_EVOBACKUP FAILED!' + ls /etc/cron* |grep -q "evobackup" || echo 'IS_EVOBACKUP FAILED!' fi # Verification de la presence du userlogrotate