mirror of https://github.com/CISOfy/lynis.git
Replace existing update check options with new helper utility
This commit is contained in:
parent
943b944a13
commit
22810e58e7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue