Update evobackup installation check for OpenBSD

This commit is contained in:
Tristan PILAT 2019-03-22 14:55:57 +01:00
parent 823a4f9ee0
commit 37f3c1faee
1 changed files with 8 additions and 0 deletions

View File

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