mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-23 22:04:39 +02:00
Update release date, replacing old function names
This commit is contained in:
parent
c1bee3b39d
commit
534dc2e97d
20
lynis
20
lynis
@ -32,8 +32,8 @@
|
|||||||
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
PROGRAM_AUTHOR_CONTACT="lynis-dev@cisofy.com"
|
||||||
|
|
||||||
# Version details
|
# Version details
|
||||||
PROGRAM_RELEASE_DATE="2016-04-21"
|
PROGRAM_RELEASE_DATE="2016-04-28"
|
||||||
PROGRAM_RELEASE_TIMESTAMP=1461231978
|
PROGRAM_RELEASE_TIMESTAMP=1461841101
|
||||||
PROGRAM_RELEASETYPE="dev" # dev or final
|
PROGRAM_RELEASETYPE="dev" # dev or final
|
||||||
PROGRAM_VERSION="2.2.1"
|
PROGRAM_VERSION="2.2.1"
|
||||||
|
|
||||||
@ -489,7 +489,7 @@ ${NORMAL}
|
|||||||
RemovePIDFile
|
RemovePIDFile
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
LogText "### ${PROGRAM_COPYRIGHT} ###"
|
LogText "### ${PROGRAM_COPYRIGHT} ###"
|
||||||
|
|
||||||
# Clear report file (to avoid appending to an existing file)
|
# Clear report file (to avoid appending to an existing file)
|
||||||
@ -601,7 +601,7 @@ ${NORMAL}
|
|||||||
|
|
||||||
Report "plugin_directory=${PLUGINDIR}"
|
Report "plugin_directory=${PLUGINDIR}"
|
||||||
|
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
@ -695,7 +695,7 @@ ${NORMAL}
|
|||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
@ -704,7 +704,7 @@ ${NORMAL}
|
|||||||
SafePerms ${INCLUDEDIR}/binaries
|
SafePerms ${INCLUDEDIR}/binaries
|
||||||
. ${INCLUDEDIR}/binaries
|
. ${INCLUDEDIR}/binaries
|
||||||
fi
|
fi
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
@ -749,7 +749,7 @@ ${NORMAL}
|
|||||||
if [ $# -eq 0 ]; then echo "RunPlugins should be started with phase number"; ExitFatal; fi
|
if [ $# -eq 0 ]; then echo "RunPlugins should be started with phase number"; ExitFatal; fi
|
||||||
PLUGIN_PHASE=$1
|
PLUGIN_PHASE=$1
|
||||||
if [ ${PLUGIN_PHASE} -eq 0 -o ${PLUGIN_PHASE} -gt 2 ]; then echo "Incorrect phase number when calling RunPlugins"; ExitFatal; fi
|
if [ ${PLUGIN_PHASE} -eq 0 -o ${PLUGIN_PHASE} -gt 2 ]; then echo "Incorrect phase number when calling RunPlugins"; ExitFatal; fi
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
InsertPluginSection "Plugins (phase ${PLUGIN_PHASE})"
|
InsertPluginSection "Plugins (phase ${PLUGIN_PHASE})"
|
||||||
if [ ${PLUGIN_PHASE} -eq 1 ]; then
|
if [ ${PLUGIN_PHASE} -eq 1 ]; then
|
||||||
Display --text "Note: plugins have more extensive tests, which may take a few minutes to complete"
|
Display --text "Note: plugins have more extensive tests, which may take a few minutes to complete"
|
||||||
@ -792,7 +792,7 @@ ${NORMAL}
|
|||||||
if [ ${PLUGIN_PHASE} -eq 1 ]; then Progress " ["; fi
|
if [ ${PLUGIN_PHASE} -eq 1 ]; then Progress " ["; fi
|
||||||
. ${PLUGINFILE}
|
. ${PLUGINFILE}
|
||||||
if [ ${PLUGIN_PHASE} -eq 1 ]; then Progress "]"; Progress --finish; fi
|
if [ ${PLUGIN_PHASE} -eq 1 ]; then Progress "]"; Progress --finish; fi
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
LogText "Result: ${FIND2} plugin (phase ${PLUGIN_PHASE}) finished"
|
LogText "Result: ${FIND2} plugin (phase ${PLUGIN_PHASE}) finished"
|
||||||
else
|
else
|
||||||
LogText "Plugin ${FIND2}: Skipped (bad file permissions, should be 640, 600 or 400)"
|
LogText "Plugin ${FIND2}: Skipped (bad file permissions, should be 640, 600 or 400)"
|
||||||
@ -825,7 +825,7 @@ ${NORMAL}
|
|||||||
#################################################################################
|
#################################################################################
|
||||||
#
|
#
|
||||||
# Get host ID
|
# Get host ID
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
GetHostID
|
GetHostID
|
||||||
# Check if result is not empty (no blank, or hash of blank value, or minus, or zeros)
|
# Check if result is not empty (no blank, or hash of blank value, or minus, or zeros)
|
||||||
if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" -a ! "${HOSTID}" = "6ef1338f520d075957424741d7ed35ab5966ae97" ]; then
|
if [ ! "${HOSTID}" = "-" -a ! "${HOSTID}" = "" -a ! "${HOSTID}" = "adc83b19e793491b1c6ea0fd8b46cd9f32e592fc" -a ! "${HOSTID}" = "6ef1338f520d075957424741d7ed35ab5966ae97" ]; then
|
||||||
@ -846,7 +846,7 @@ ${NORMAL}
|
|||||||
|
|
||||||
if [ ${RUN_TESTS} -eq 1 ]; then
|
if [ ${RUN_TESTS} -eq 1 ]; then
|
||||||
|
|
||||||
logtextbreak
|
LogTextBreak
|
||||||
# Test sections
|
# Test sections
|
||||||
if [ "${TESTS_CATEGORY_TO_PERFORM}" = "" ]; then
|
if [ "${TESTS_CATEGORY_TO_PERFORM}" = "" ]; then
|
||||||
LogText "Info: perform tests from all categories"
|
LogText "Info: perform tests from all categories"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user