Files
debian-cis/tests/hardening/chrony_is_enabled_and_running.sh
damien cavagnini eda302d55f add "apt_remove" in lib/utils.sh
in order to manage DEBIAN_FRONTEND
2025-07-31 11:03:48 +02:00

19 lines
412 B
Bash

# shellcheck shell=bash
# run-shellcheck
test_audit() {
describe Ensure package is installed
# install dependencies
apt update
apt install -y chrony
# not much to test here, we are running in a container, we wont check service state
describe Checking blank host
register_test retvalshouldbe 0
run blank "${CIS_CHECKS_DIR}/${script}.sh" --audit-all
apt remove -y chrony
}