mirror of https://github.com/CISOfy/lynis.git
Changed exit codes for specific events
This commit is contained in:
parent
b6c0736d6e
commit
e7adeb8a6b
4
lynis
4
lynis
|
@ -276,7 +276,7 @@
|
|||
if [ "${PROFILE}" = "" ]; then
|
||||
echo "${RED}Fatal error: ${WHITE}No profile defined and could not find default profile${NORMAL}"
|
||||
echo "Search paths used --> ${tPROFILE_TARGETS}"
|
||||
ExitFatal
|
||||
ExitCustom 66
|
||||
fi
|
||||
# Initialize and check profile file, auditor name, log file and report file
|
||||
if [ ! -r ${PROFILE} ]; then echo "Fatal error: Can't open profile file (${PROFILE})"; exit 1; fi
|
||||
|
@ -389,7 +389,7 @@
|
|||
# Cleanup PID file if we drop out earlier
|
||||
RemovePIDFile
|
||||
# Exit with exit code 1
|
||||
exit 1
|
||||
exit 64
|
||||
fi
|
||||
#
|
||||
#################################################################################
|
||||
|
|
Loading…
Reference in New Issue