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