mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Cleaning up code a little bit
This commit is contained in:
parent
b25fa10b1d
commit
98abf325e4
@ -101,6 +101,7 @@
|
|||||||
# Profile name
|
# Profile name
|
||||||
profile_name)
|
profile_name)
|
||||||
# YYY dummy
|
# YYY dummy
|
||||||
|
PROFILE_NAME="${VALUE}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Inline tips about tool
|
# Inline tips about tool
|
||||||
@ -121,9 +122,9 @@
|
|||||||
|
|
||||||
# Define what kind of scan we are performing
|
# Define what kind of scan we are performing
|
||||||
test_scan_mode)
|
test_scan_mode)
|
||||||
if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi
|
if [ "${VALUE}" = "light" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="NO"; SCAN_TEST_HEAVY="NO"; fi
|
||||||
if [ "${VALUE}" = "normal" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="NO"; fi
|
if [ "${VALUE}" = "normal" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="NO"; fi
|
||||||
if [ "${VALUE}" = "full" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="YES"; fi
|
if [ "${VALUE}" = "full" ]; then SCAN_TEST_LIGHT="YES"; SCAN_TEST_MEDIUM="YES"; SCAN_TEST_HEAVY="YES"; fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Catch all bad options and bail out
|
# Catch all bad options and bail out
|
||||||
@ -131,8 +132,7 @@
|
|||||||
logtext "Unknown option ${OPTION} (with value: ${VALUE})"
|
logtext "Unknown option ${OPTION} (with value: ${VALUE})"
|
||||||
echo "Fatal error: found errors in profile"
|
echo "Fatal error: found errors in profile"
|
||||||
echo "Unknown option '${OPTION}' found (with value: ${VALUE})"
|
echo "Unknown option '${OPTION}' found (with value: ${VALUE})"
|
||||||
RemovePIDFile
|
ExitFatal
|
||||||
exit 1
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
@ -147,23 +147,6 @@
|
|||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
|
||||||
# Plugins
|
|
||||||
#
|
|
||||||
#################################################################################
|
|
||||||
#
|
|
||||||
#FIND=`cat ${PROFILE} | grep '^plugin_enable=' | sed 's/ /!space!/g'`
|
|
||||||
#for I in ${FIND}; do
|
|
||||||
# PLUGIN=`echo ${I} | cut -d '=' -f2`
|
|
||||||
# if [ -f "${PLUGINDIR}/${PLUGIN}" ]; then
|
|
||||||
# logtext "Found plugin: ${PLUGIN}"
|
|
||||||
# # XXX - enable plugin
|
|
||||||
# else
|
|
||||||
# logtext "Couldn't find plugin: ${PLUGIN} (${PLUGINDIR}/${PLUGIN})"
|
|
||||||
# fi
|
|
||||||
#done
|
|
||||||
#
|
|
||||||
#################################################################################
|
|
||||||
#
|
#
|
||||||
# Set default values (only if not configured in profile)
|
# Set default values (only if not configured in profile)
|
||||||
|
|
||||||
@ -184,4 +167,4 @@
|
|||||||
logtextbreak
|
logtextbreak
|
||||||
|
|
||||||
#================================================================================
|
#================================================================================
|
||||||
# Lynis - Copyright 2007-2014, Michael Boelen - cisofy.com - The Netherlands
|
# Lynis - Copyright 2007-2014, Michael Boelen - CISOfy, https://cisofy.com
|
||||||
|
Loading…
x
Reference in New Issue
Block a user