mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-25 23:11:24 +01:00
ADD(2.2.1.2): add systemd-timesyncd
This commit is contained in:
parent
e0c6692ff2
commit
b6fff5b8b6
@ -13,13 +13,20 @@ set -e # One error, it's over
|
|||||||
set -u # One variable unset, it's over
|
set -u # One variable unset, it's over
|
||||||
|
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
HARDENING_LEVEL=3
|
HARDENING_LEVEL=4
|
||||||
# shellcheck disable=2034
|
# shellcheck disable=2034
|
||||||
DESCRIPTION="Configure systemd-timesyncd."
|
DESCRIPTION="Configure systemd-timesyncd."
|
||||||
|
|
||||||
|
SERVICE_NAME="systemd-timesyncd"
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
audit() {
|
audit() {
|
||||||
:
|
is_service_enabled "$SERVICE_NAME"
|
||||||
|
if [ "$FNRET" = 0 ]; then
|
||||||
|
ok "$SERVICE_NAME is enabled"
|
||||||
|
else
|
||||||
|
crit "$SERVICE_NAME is disabled"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
|
Loading…
Reference in New Issue
Block a user