validate configuration file

This commit is contained in:
Patrick Schleizer 2025-08-03 07:15:41 -04:00
parent 4ba029471e
commit b9416fa77a
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48
2 changed files with 2 additions and 0 deletions

View file

@ -13,6 +13,7 @@ export LC_ALL=C
## Read emergency shutdown key configuration
for config_file in /etc/security-misc/emerg-shutdown/*.conf; do
bash -n "${config_file}"
source "${config_file}"
done
if [ -z "${EMERG_SHUTDOWN_KEYS}" ]; then

View file

@ -15,6 +15,7 @@ export LC_ALL=C
## Read emergency shutdown key configuration
for config_file in /etc/security-misc/emerg-shutdown/*.conf; do
bash -n "${config_file}"
source "${config_file}"
done
if [ -z "${ENSURE_SHUTDOWN_TIMEOUT}" ] \