Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-04-30 02:28:33 +0300
committermboelen <michael@cisofy.com>2015-04-30 02:28:33 +0300
commit22810e58e7949098da1bbbfde3d5232798fabb08 (patch)
treef079e47c4873b19a9e1cb4454767985b7f2fc787
parent943b944a13a6602b088ad0b224a9479c6634225d (diff)
Replace existing update check options with new helper utility
-rw-r--r--include/parameters27
1 files changed, 26 insertions, 1 deletions
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