mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-29 16:54:26 +02:00
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
|
if [ "${PROFILE}" = "" ]; then
|
||||||
echo "${RED}Fatal error: ${WHITE}No profile defined and could not find default profile${NORMAL}"
|
echo "${RED}Fatal error: ${WHITE}No profile defined and could not find default profile${NORMAL}"
|
||||||
echo "Search paths used --> ${tPROFILE_TARGETS}"
|
echo "Search paths used --> ${tPROFILE_TARGETS}"
|
||||||
ExitFatal
|
ExitCustom 66
|
||||||
fi
|
fi
|
||||||
# Initialize and check profile file, auditor name, log file and report file
|
# 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
|
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
|
# Cleanup PID file if we drop out earlier
|
||||||
RemovePIDFile
|
RemovePIDFile
|
||||||
# Exit with exit code 1
|
# Exit with exit code 1
|
||||||
exit 1
|
exit 64
|
||||||
fi
|
fi
|
||||||
#
|
#
|
||||||
#################################################################################
|
#################################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user