mirror of https://github.com/CISOfy/lynis.git
Preparations for user tips to improve usage of tool
This commit is contained in:
parent
f828a06bec
commit
3cf64ff5a6
|
@ -26,16 +26,36 @@
|
||||||
# Only show tips when enabled
|
# Only show tips when enabled
|
||||||
if [ ${SHOW_TOOL_TIPS} -eq 1 ]; then
|
if [ ${SHOW_TOOL_TIPS} -eq 1 ]; then
|
||||||
|
|
||||||
|
# * Regular security auditing
|
||||||
|
#
|
||||||
|
# If package is installed, then suggest users to schedule the audit daily
|
||||||
|
# How: confirm presence of directory /etc/lynis and check cronjobs
|
||||||
|
|
||||||
|
|
||||||
|
# * Check for duplicate items between default and custom profile
|
||||||
|
#
|
||||||
|
# This can be done by marking an item if it overwrites the default profile
|
||||||
|
# with the same value.
|
||||||
|
#
|
||||||
|
# Rationale: default profile should contain have sensible default and
|
||||||
|
# custom profile allows customization for the user or system.
|
||||||
|
|
||||||
|
|
||||||
|
# Suggest usage of plugins if none are enabled
|
||||||
|
|
||||||
|
|
||||||
# Bash completion support
|
# Bash completion support
|
||||||
if [ ! "${ETC_PATHS}" = "" ]; then
|
#
|
||||||
for I in ${ETC_PATHS}; do
|
# Detect if bash is used for active user
|
||||||
if [ -d ${I}/bash-completion.d ]; then
|
#if [ ! -z "${ETC_PATHS}" ]; then
|
||||||
if [ ! -f ${ETC_PATHS}/bash_completion.d/lynis ]; then
|
# for I in ${ETC_PATHS}; do
|
||||||
Display "This system has a bash_completion directory. Copy extras/bash_completion.d/lynis to ${I} to get completion support for Lynis"
|
# if [ -d ${I}/bash_completion.d ]; then
|
||||||
fi
|
# if [ ! -f ${ETC_PATHS}/bash_completion.d/lynis ]; then
|
||||||
fi
|
# Display "This system has a bash_completion directory. Copy extras/bash_completion.d/lynis to ${I} to get completion support for Lynis"
|
||||||
done
|
# fi
|
||||||
fi
|
# fi
|
||||||
|
# done
|
||||||
|
#fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue