mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Added check-value for custom configurations check
This commit is contained in:
parent
076c5dd093
commit
412613e14c
@ -54,6 +54,11 @@
|
|||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# Check for a specific value
|
||||||
|
check-value)
|
||||||
|
STRING=$(echo ${VALUE} | tr -d "[" | tr -d "]" | sed "s/, /,/g")
|
||||||
|
CHECK_VALUE_ARRAY="${CHECK_OPTION_ARRAY} ${STRING}"
|
||||||
|
;;
|
||||||
# Maximum number of WAITing connections
|
# Maximum number of WAITing connections
|
||||||
connections_max_wait_state)
|
connections_max_wait_state)
|
||||||
OPTIONS_CONN_MAX_WAIT_STATE="${VALUE}"
|
OPTIONS_CONN_MAX_WAIT_STATE="${VALUE}"
|
||||||
@ -307,7 +312,6 @@
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Set default values (only if not configured in profile)
|
# Set default values (only if not configured in profile)
|
||||||
|
|
||||||
if [ "${MACHINE_ROLE}" = "" ]; then
|
if [ "${MACHINE_ROLE}" = "" ]; then
|
||||||
MACHINE_ROLE="server"
|
MACHINE_ROLE="server"
|
||||||
LogText "Set option to default value: MACHINE_ROLE --> ${MACHINE_ROLE}"
|
LogText "Set option to default value: MACHINE_ROLE --> ${MACHINE_ROLE}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user