Checks extended to define own checks for all own hosts or a specific one.

This commit is contained in:
Martin Berghaus
2025-03-12 22:27:13 +01:00
parent 4943625351
commit 3d1ecf6fa8
26 changed files with 56 additions and 59 deletions

View File

@@ -0,0 +1,10 @@
#!/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