From f377df3370f35a680def048c50955b273dfc05bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Lecour?= Date: Sat, 23 Mar 2019 01:35:26 +0100 Subject: [PATCH] fix evobakup scripts detection find returns with 0 even if nothing is found, so we use the number of occurences --- evocheck.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 08d8275..43c7a5b 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -722,7 +722,8 @@ if is_debian; then # Verification de la mise en place d'evobackup if [ "$IS_EVOBACKUP" = 1 ]; then - find /etc/cron* -name '*evobackup*' > /dev/null || failed "IS_EVOBACKUP" + evobackup_found=$(find /etc/cron* -name '*evobackup*' | wc -l) + test "$evobackup_found" -gt 0 || failed "IS_EVOBACKUP" fi # Verification de la presence du userlogrotate