mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 23:34:25 +02:00
Extend configure module to allow making changes to custom.prf soon
This commit is contained in:
parent
7b819b4eca
commit
9dafcac6b0
@ -71,7 +71,22 @@
|
||||
FIND=$(echo ${HELPER_PARAMERS} | grep " ")
|
||||
if [ ! "${FIND}" = "" ]; then ${ECHOCMD} "Found invalid character (space) in configuration string"; ExitFatal; fi
|
||||
|
||||
CONFIGURE_SETTINGS=$(echo $2 | sed 's/:/ /g')
|
||||
for I in ${CONFIGURE_SETTINGS}; do
|
||||
SETTING=$(echo ${I} | awk -F= '{print $1}')
|
||||
VALUE=$(echo ${I} | awk -F= '{print $2}')
|
||||
if [ "${VALUE}" = "" ]; then
|
||||
Debug "Did not find a value configured on the command line for setting ${SETTING}"
|
||||
#read VALUE
|
||||
else
|
||||
Debug "Setting '${SETTING}' should be configured with value '${VALUE}'"
|
||||
fi
|
||||
# Now check if value is in line with expected type (boolean, integer, string)
|
||||
# =To be implemented=
|
||||
done
|
||||
${ECHOCMD} ""
|
||||
${ECHOCMD} "${YELLOW}Note${NORMAL}: ${WHITE}Automatic configuration not fully implemented yet.${NORMAL}"
|
||||
${ECHOCMD} ""
|
||||
ExitClean
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user