Checks that ensure the correct basic configuration of the host

This commit is contained in:
m8in
2025-11-27 20:58:47 +01:00
parent 0998b59fa7
commit 97e8a90b26
23 changed files with 284 additions and 0 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