Fixed base.module.sh, migrated EXAMPLE_CHECK.off and improved log.module.sh

This commit is contained in:
m8in
2026-05-18 20:06:29 +02:00
parent 216cd4ec48
commit bd76357b1d
3 changed files with 7 additions and 10 deletions
@@ -1,9 +1,6 @@
#!/bin/bash
source /cis/core/base.module.sh
_CHECK="$(readlink -f "${0}" 2> /dev/null)"
# Folders always ends with an tailing '/'
_CIS_ROOT="${_CHECK%%/definitions/*}/" #Removes longest matching pattern '/definitions/*' from the end
_GENERIC_CHECKS="${_CIS_ROOT:?"Missing CIS_ROOT"}script/monitor/generic/"
${_GENERIC_CHECKS:?"Missing GENERIC_CHECKS"}CIS_OWN_DOMAIN_CHECK.sh "your-host.your-domain.net[:ssh_port]"
${CIS[GENERICMONITORCHECKS]:?"Missing GENERICMONITORCHECKS"}CIS_OWN_DOMAIN_CHECK.sh "your-host.your-domain.net[:ssh_port]"