mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-04 14:21:15 +02:00

- 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
24 lines
672 B
Bash
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
|
|
}
|