Added sqlDetails variable

This commit is contained in:
Asif Bacchus 2018-10-03 15:34:44 -06:00
parent 92fab88c0b
commit b3e9b4a0da

View File

@ -143,6 +143,7 @@ unset webroot
unset ncRoot unset ncRoot
unset webUser unset webUser
unset clean503 unset clean503
unset sqlDetails
errorExplain=() errorExplain=()
exitWarn=() exitWarn=()
warningExplain=() warningExplain=()
@ -171,7 +172,7 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then
fi fi
# use GetOpts to process parameters # use GetOpts to process parameters
while getopts ':l:n:u:v5:w:' PARAMS; do while getopts ':l:n:u:v5:w:s:' PARAMS; do
case "$PARAMS" in case "$PARAMS" in
l) l)
# use provided location for logFile # use provided location for logFile
@ -199,6 +200,10 @@ while getopts ':l:n:u:v5:w:' PARAMS; do
# path to webserver webroot to copy 503 error page # path to webserver webroot to copy 503 error page
webroot="${OPTARG%/}" webroot="${OPTARG%/}"
;; ;;
s)
# path to file containing SQL login details
sqlDetails="${OPTARG%/}"
;;
?) ?)
# unrecognized parameters trigger scriptHelp # unrecognized parameters trigger scriptHelp
scriptHelp scriptHelp