IS_EVOBACKUP_INCS: also look for the new command

This commit is contained in:
Jérémy Lecour 2020-04-24 11:22:41 +02:00 committed by Jérémy Lecour
parent 490d351aca
commit e72de02c96
2 changed files with 3 additions and 1 deletions

View file

@ -15,6 +15,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
### Fixed
* IS_EVOBACKUP_INCS: also look for the new command
### Security
## [20.04.2] 2020-04-15

View file

@ -1205,7 +1205,7 @@ check_evobackup_incs() {
if [ -f "${bkctld_cron_file}" ]; then
root_crontab=$(grep -v "^#" "${bkctld_cron_file}")
echo "${root_crontab}" | grep -q "bkctld inc" || failed "IS_EVOBACKUP_INCS" "\`bkctld inc' is missing in ${bkctld_cron_file}"
echo "${root_crontab}" | grep -q "check-incs.sh" || failed "IS_EVOBACKUP_INCS" "\`check-incs.sh' is missing in ${bkctld_cron_file}"
echo "${root_crontab}" | grep -qE "(check-incs.sh|bkctld check-incs)" || failed "IS_EVOBACKUP_INCS" "\`check-incs.sh' is missing in ${bkctld_cron_file}"
else
failed "IS_EVOBACKUP_INCS" "Crontab \`${bkctld_cron_file}' is missing"
fi