mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-26 15:24:21 +02:00
Replace existing update check options with new helper utility
This commit is contained in:
parent
943b944a13
commit
22810e58e7
@ -23,6 +23,7 @@
|
|||||||
PARAMCOUNT=$#
|
PARAMCOUNT=$#
|
||||||
while [ $# -ge 1 ]; do
|
while [ $# -ge 1 ]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
# Helpers first
|
||||||
audit)
|
audit)
|
||||||
CHECK_BINARIES=0
|
CHECK_BINARIES=0
|
||||||
RUN_HELPERS=1
|
RUN_HELPERS=1
|
||||||
@ -63,6 +64,28 @@
|
|||||||
#break
|
#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
|
# Assign auditor to report
|
||||||
--auditor)
|
--auditor)
|
||||||
shift
|
shift
|
||||||
@ -102,7 +125,9 @@
|
|||||||
|
|
||||||
# View program/database information
|
# View program/database information
|
||||||
--check-update | --check-updates | --info)
|
--check-update | --check-updates | --info)
|
||||||
VIEWUPDATEINFO=1
|
echo "This option is deprecated"
|
||||||
|
echo "Use: lynis update info"
|
||||||
|
ExitClean
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# License key for Lynis Enterprise
|
# License key for Lynis Enterprise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user