OpenBSD - check_evobackup: zzz_evobackup is now executed with bash

This commit is contained in:
Jérémy Dubois 2023-03-22 09:56:13 +01:00
parent 8d22e5ea85
commit baf26b23c4
2 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
* Log output and runtime config to /var/log/evocheck.log.
* check_mountfstab and check_mount : make sure all mounted partitions are in fstab and all partitions in fstab are mounted
* check_mountfstab and check_mount: make sure all mounted partitions are in fstab and all partitions in fstab are mounted
### Changed
* check_evobackup: zzz_evobackup is now executed with bash
## [23.02] - 2023-02-10

View file

@ -118,9 +118,9 @@ check_raidok(){
}
check_evobackup(){
if [ -f /etc/daily.local ]; then
grep -qE "^sh /usr/share/scripts/zzz_evobackup" /etc/daily.local || failed "IS_EVOBACKUP" "Make sure 'sh /usr/share/scripts/zzz_evobackup' is present and activated in /etc/daily.local"
grep -qE "^(ba)?sh /usr/share/scripts/zzz_evobackup" /etc/daily.local || failed "IS_EVOBACKUP" "Make sure 'bash or sh /usr/share/scripts/zzz_evobackup' is present and activated in /etc/daily.local"
else
failed "IS_EVOBACKUP" "Make sure /etc/daily.local exists and 'sh /usr/share/scripts/zzz_evobackup' is present and activated in /etc/daily.local"
failed "IS_EVOBACKUP" "Make sure /etc/daily.local exists and 'bash or sh /usr/share/scripts/zzz_evobackup' is present and activated in /etc/daily.local"
fi
}
check_uptodate(){