From e7adeb8a6bfef3f276ab90e0c93ddbe38b82d687 Mon Sep 17 00:00:00 2001 From: mboelen Date: Thu, 10 Sep 2015 08:36:26 +0200 Subject: [PATCH] Changed exit codes for specific events --- lynis | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lynis b/lynis index 8cbcb38a..9fa9e08b 100755 --- a/lynis +++ b/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 # #################################################################################