From baf26b23c41dfc2fc4620c2bc69206aaa683445f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Dubois?= Date: Wed, 22 Mar 2023 09:56:13 +0100 Subject: [PATCH] OpenBSD - check_evobackup: zzz_evobackup is now executed with bash --- openbsd/CHANGELOG | 6 +++++- openbsd/evocheck.sh | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/openbsd/CHANGELOG b/openbsd/CHANGELOG index cc9ede2..eca88e2 100644 --- a/openbsd/CHANGELOG +++ b/openbsd/CHANGELOG @@ -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 diff --git a/openbsd/evocheck.sh b/openbsd/evocheck.sh index d13bde9..c4dfa92 100755 --- a/openbsd/evocheck.sh +++ b/openbsd/evocheck.sh @@ -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(){