From 37f3c1faee3aca6837bbb9c8f0f9bb10ccc6eea8 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Fri, 22 Mar 2019 14:55:57 +0100 Subject: [PATCH] Update evobackup installation check for OpenBSD --- evocheck.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/evocheck.sh b/evocheck.sh index cf488c1..aca557d 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -165,7 +165,15 @@ fi # TODO #fi +# Check Evoackup installation if [ "$IS_EVOBACKUP" = 1 ]; then + if [ -f /etc/daily.local ]; then + grep -qE "^sh /usr/share/scripts/zzz_evobackup" /etc/daily.local || echo 'IS_EVOBACKUP FAILED!' + else + echo 'IS_EVOBACKUP FAILED!' + if [[ "$VERBOSE" == 1 ]]; then + echo "Make sure /etc/daily.local exist and 'sh /usr/share/scripts/zzz_evobackup' is present and activated in /etc/daily.local" + fi fi fi