Changed exit codes for specific events

This commit is contained in:
mboelen 2015-09-10 08:36:26 +02:00
parent b6c0736d6e
commit e7adeb8a6b
1 changed files with 2 additions and 2 deletions

4
lynis
View File

@ -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
#
#################################################################################