Skip to content

Commit

Permalink
Make Lynis run in quick mode by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mboelen committed Jul 27, 2016
1 parent abf34b5 commit ff3f13c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/consts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ unset LANG
LOG_INCORRECT_OS=1 # Log tests with incorrect OS
NEVERBREAK=0 # Don't wait for user input
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
SKIPLOGTEST=0 # Skip logging for one test
SKIP_UPGRADE_TEST=0 # Skip upgrade test
Expand Down
2 changes: 1 addition & 1 deletion include/helper_show
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

COMMANDS="audit 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_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories)
Expand Down
4 changes: 4 additions & 0 deletions include/parameters
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@
fi
;;

--wait)
QUICKMODE=0
;;

# Warnings
--warnings-only | --show-warnings-only)
SHOW_WARNINGS_ONLY=1
Expand Down
6 changes: 5 additions & 1 deletion lynis.8
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -121,6 +121,10 @@ valid options.
.B \-\-upload
Upload data to Lynis Enterprise server.
.TP
.B \-\-wait
Wait for user to continue. This adds a break after each section (opposed of
\-\-quick).
.TP
.B \-\-warnings\-only
Run quietly, except warnings.
.RE
Expand Down

0 comments on commit ff3f13c

Please sign in to comment.