Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-09-10 09:36:26 +0300
committermboelen <michael@cisofy.com>2015-09-10 09:36:26 +0300
commite7adeb8a6bfef3f276ab90e0c93ddbe38b82d687 (patch)
treef53c69b5d24a68a76dbfbb19e4ee19ad90c6102e
parentb6c0736d6e4676412a78a5de7371337eb72eb4a0 (diff)
Changed exit codes for specific events
-rwxr-xr-xlynis4
1 files 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
#
#################################################################################