Changed warning exit code

This commit is contained in:
Asif Bacchus 2018-09-07 03:18:36 -06:00
parent f9de2c8398
commit 9154e4c76e

View File

@ -31,7 +31,8 @@
### Your logcheck system should report all '--WARNING: ... --' tags.
### 1 - Script was not run as ROOT (only error not in log, stderr/stdout only)
### 2 - Unknown verbosity level specified on script invocation
### 100 - Script has exited with warnings (codes listed in log on exit line)
### 100 - Script has exited with ERRORS (codes listed in log on exit line)
### 101 - Script has exited with warnings (codes listed in log on exit line)
### 101 - File/directory not found
### 102 - Could not create file/directory
### 103 - Could not remove file/directory
@ -449,7 +450,7 @@ fi
## Log completion of script
if [ ${#exitWarning[@]} -gt 0 ]; then
quit 100 warn
quit 101 warn
else
quit
fi