From 73fff32758b9d2b9660d4ba8fabe9a989cff9297 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 21 May 2019 03:29:22 -0600 Subject: [PATCH] added error code summary for reference --- f2b-config.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/f2b-config.sh b/f2b-config.sh index 8f1eb22..5cb2a92 100755 --- a/f2b-config.sh +++ b/f2b-config.sh @@ -128,4 +128,14 @@ echo ### exit gracefully -exit 0 \ No newline at end of file +exit 0 + + +### error code summary +# 1: fail2ban executable file could not be found -- fail2ban likely not +# installed +# 2: script not run as ROOT (needed to avoid any permissions issues) +# 3: invalid fail2ban configuration directory provided by user +# 99: internal testing error code, should *not* appear in releases +# 100: error copying files to fail2ban configuration directory and/or making +# simultaneous backup copies of any exisitng files.