diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-17 22:39:02 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2016-05-17 22:39:02 +0300 |
commit | 9dafcac6b08a8e48946183bafff6c1b45fa4f236 (patch) | |
tree | c722620c016d2d9db8bb57b6901c981b5a835c90 /include/helper_configure | |
parent | 7b819b4eca20f2dd26b4b336cd651e2b94c3d5b2 (diff) |
Extend configure module to allow making changes to custom.prf soon
Diffstat (limited to 'include/helper_configure')
-rw-r--r-- | include/helper_configure | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/helper_configure b/include/helper_configure index cbdd5b06..02c750f4 100644 --- a/include/helper_configure +++ b/include/helper_configure @@ -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 |