Files
cis/definitions/default/check/all/system_timezone_is_berlin.check.sh
T
Martin Berghaus 00b920763e Checks improved
2026-05-09 21:59:40 +02:00

11 lines
270 B
Bash
Executable File

#!/bin/bash
_CURRENT_FILE='/etc/timezone'
#The file must be readable, then
#the number of lines containing "Europe/Berlin" must be one.
[ -r "${_CURRENT_FILE}" ] \
&& [ "1" == "$(cat "${_CURRENT_FILE}" | grep 'Europe/Berlin' | grep -c .)" ] \
&& exit 0
exit 1