mirror of
https://github.com/ovh/debian-cis.git
synced 2025-08-31 11:54:07 +02:00
feat: add debian12 scripts (#292)
- auditd_logs_full_halt.sh -> 6.3.2.3 - systemd_journal_upload_remote_auth.sh -> 6.2.1.2.2 - sudo_auth_timeout.sh -> 5.2.6 - libpam_modules_is_installed.sh -> 5.3.1.2 - ufw_not_installed_with_nftables.sh -> 4.2.2 - ufw_not_installed_with_iptables.sh -> 4.3.1.3 Co-authored-by: damien cavagnini <damien.cavagnini@corp.ovh.com>
This commit is contained in:
12
lib/utils.sh
12
lib/utils.sh
@@ -404,6 +404,18 @@ is_timer_active() {
|
||||
fi
|
||||
}
|
||||
|
||||
is_timer_enabled() {
|
||||
local TIMER=$1
|
||||
|
||||
systemd_is_active_or_enabled "$TIMER" 'timer' 'is-enabled'
|
||||
|
||||
if [ "$FNRET" -eq 0 ]; then
|
||||
debug "Timer $TIMER is enabled"
|
||||
else
|
||||
debug "Timer $TIMER is not enabled"
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Kernel Options checks
|
||||
#
|
||||
|
Reference in New Issue
Block a user