Files
debian-cis/tests/hardening/systemd_journal_remote_is_installed.sh
damien cavagnini 6c93b453bc feat: add debian12 scripts
- aide_daliy_check				-> 6.1.2
- journald_is_enabled.sh 			-> 6.2.1.1.1
- systemd_journald_remote_is_installed.sh 	-> 6.2.1.2.1
- systemd_journal_upload_is_enabled.sh -	-> 6.2.1.2.3
- systemd_journal_remote_is_disabled.sh 	-> 6.2.1.2.4
2025-08-01 15:18:10 +02:00

24 lines
672 B
Bash

# shellcheck shell=bash
# run-shellcheck
test_audit() {
describe set up failed check
apt remove -y systemd-journal-remote
describe Running failed test
register_test retvalshouldbe 1
# shellcheck disable=2154
run failure "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
describe Fix situation
sed -i 's/audit/enabled/' "${CIS_CONF_DIR}/conf.d/${script}.cfg"
"${CIS_CHECKS_DIR}/${script}.sh" --apply || true
describe running successfull audit
register_test retvalshouldbe 0
# shellcheck disable=2154
run success "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
apt remove -y systemd-journal-remote
apt autoremove -y
}