diff --git a/include/parameters b/include/parameters index 790fa2f8..2cd372f8 100644 --- a/include/parameters +++ b/include/parameters @@ -23,6 +23,7 @@ PARAMCOUNT=$# while [ $# -ge 1 ]; do case $1 in + # Helpers first audit) CHECK_BINARIES=0 RUN_HELPERS=1 @@ -63,6 +64,28 @@ #break ;; + # Helpers first + update) + CHECK_BINARIES=0 + RUN_HELPERS=1 + HELPER="update" + RUN_PLUGINS=0 + RUN_TESTS=0 + SHOW_PROGRAM_DETAILS=0 + if [ ! $2 = "" ]; then + shift + HELPER_PARAMS="$1 $2" + break + else + Display --text "${RED}Error: ${WHITE}Need a target for update${NORMAL}" + Display --text " " + Display --text "Examples:" + Display --text "lynis update info" + Display --text "lynis update release" + ExitFatal + fi + ;; + # Assign auditor to report --auditor) shift @@ -102,7 +125,9 @@ # View program/database information --check-update | --check-updates | --info) - VIEWUPDATEINFO=1 + echo "This option is deprecated" + echo "Use: lynis update info" + ExitClean ;; # License key for Lynis Enterprise