mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 23:46:52 -05:00
validate configuration file
This commit is contained in:
parent
4ba029471e
commit
b9416fa77a
2 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}" ] \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue