Added webroot parameter and variable

This commit is contained in:
Asif Bacchus 2018-09-19 22:14:19 -06:00
parent 45c5560bd9
commit 9841631734

View File

@ -89,6 +89,7 @@ unset borgCreateParams
unset borgPruneParams unset borgPruneParams
unset sqlDumpDir unset sqlDumpDir
unset 503Location unset 503Location
unset webroot
errorExplain=() errorExplain=()
exitWarn=() exitWarn=()
@ -106,7 +107,7 @@ if [ -z $1 ]; then
fi fi
# use GetOpts to process parameters # use GetOpts to process parameters
while getopts ':l:nv5' PARAMS; do while getopts ':l:nv5:w:' PARAMS; do
case "$PARAMS" in case "$PARAMS" in
l) l)
# use provided location for logFile # use provided location for logFile
@ -124,6 +125,10 @@ while getopts ':l:nv5' PARAMS; do
# 503 error page location # 503 error page location
503Location="${OPTARG}" 503Location="${OPTARG}"
;; ;;
w)
# path to webroot for NextCloud installation
webroot="${OPTARG}"
;;
?) ?)
# unrecognized parameters trigger scriptHelp # unrecognized parameters trigger scriptHelp
scriptHelp scriptHelp