From aad6b7876f22a15e5de49a7ced336bff57d77fd7 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Wed, 19 Sep 2018 22:24:24 -0600 Subject: [PATCH] Added warning explanation variables --- backup.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backup.sh b/backup.sh index c0fc0d7..bdeb697 100755 --- a/backup.sh +++ b/backup.sh @@ -92,12 +92,21 @@ unset 503Location unset webroot errorExplain=() exitWarn=() +warningExplain=() ### Error codes errorExplain[2]="This script MUST be run as ROOT." +### Warning codes & messages +warningExplain[5031]="No path to a 503 error page file was specified (-5 parameter missing)" +warningExplain[5032]="The specified 503 error page could not be found" +warningExplain[5033]="No webroot path was specified (-w parameter missing)" +warningExplain[5034]="The specified webroot could not be found" +warningExplain[5035]="Error copying 503 error page to webroot" +warn503="${bold}${yellow}Web users will NOT be informed the server is down!${normal}" + ### Process script parameters # if no parameters provided, then show the help page and exit with error