Make Lynis run in quick mode by default

This commit is contained in:
Michael Boelen 2016-07-27 12:14:25 +02:00
parent abf34b56b6
commit ff3f13cdd0
4 changed files with 11 additions and 3 deletions

View File

@ -219,7 +219,7 @@ unset LANG
LOG_INCORRECT_OS=1 # Log tests with incorrect OS LOG_INCORRECT_OS=1 # Log tests with incorrect OS
NEVERBREAK=0 # Don't wait for user input NEVERBREAK=0 # Don't wait for user input
PENTESTINGMODE=0 # Try tests without root privileges PENTESTINGMODE=0 # Try tests without root privileges
QUICKMODE=0 # Don't wait for user input QUICKMODE=1 # Don't wait for user input
QUIET=0 # Show normal messages and warnings as well QUIET=0 # Show normal messages and warnings as well
SKIPLOGTEST=0 # Skip logging for one test SKIPLOGTEST=0 # Skip logging for one test
SKIP_UPGRADE_TEST=0 # Skip upgrade test SKIP_UPGRADE_TEST=0 # Skip upgrade test

View File

@ -30,7 +30,7 @@
COMMANDS="audit show update" COMMANDS="audit show update"
HELPERS="audit configure show update" HELPERS="audit configure show update"
OPTIONS="--auditor\n--check-all (-c)\n--config\n--cronjob (--cron)\n--debug\n--developer\n--help (-h)\n--info\n--license-key --log-file\n--manpage (--man)\n--no-colors --no-log\n--pentest\n--profile\n--plugins-dir\n--quiet (-q)\n--quick (-Q)\n--report-file\n--reverse-colors\n--tests\n--tests-from-category\n--tests-from-group\n--upload\n--verbose\n--version (-V)" OPTIONS="--auditor\n--check-all (-c)\n--config\n--cronjob (--cron)\n--debug\n--developer\n--help (-h)\n--info\n--license-key --log-file\n--manpage (--man)\n--no-colors --no-log\n--pentest\n--profile\n--plugins-dir\n--quiet (-q)\n--quick (-Q)\n--report-file\n--reverse-colors\n--tests\n--tests-from-category\n--tests-from-group\n--upload\n--verbose\n--version (-V)\n--wait"
SHOW_ARGS="categories changelog commands dbdir groups help hostids includedir language license logfile man options pidfile plugindir profiles release releasedate report settings tests version workdir" SHOW_ARGS="categories changelog commands dbdir groups help hostids includedir language license logfile man options pidfile plugindir profiles release releasedate report settings tests version workdir"
SHOW_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories) SHOW_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories)

View File

@ -337,6 +337,10 @@
fi fi
;; ;;
--wait)
QUICKMODE=0
;;
# Warnings # Warnings
--warnings-only | --show-warnings-only) --warnings-only | --show-warnings-only)
SHOW_WARNINGS_ONLY=1 SHOW_WARNINGS_ONLY=1

View File

@ -1,4 +1,4 @@
.TH Lynis 8 "24 Jul 2016" "1.23" "Unix System Administrator's Manual" .TH Lynis 8 "27 Jul 2016" "1.24" "Unix System Administrator's Manual"
.SH "NAME" .SH "NAME"
@ -121,6 +121,10 @@ valid options.
.B \-\-upload .B \-\-upload
Upload data to Lynis Enterprise server. Upload data to Lynis Enterprise server.
.TP .TP
.B \-\-wait
Wait for user to continue. This adds a break after each section (opposed of
\-\-quick).
.TP
.B \-\-warnings\-only .B \-\-warnings\-only
Run quietly, except warnings. Run quietly, except warnings.
.RE .RE