Removed NC specific script parameters

This commit is contained in:
Asif Bacchus 2018-10-19 21:51:30 -06:00
parent abff332ce0
commit 72d14ba75b

View File

@ -276,20 +276,12 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then
fi fi
# use GetOpts to process parameters # use GetOpts to process parameters
while getopts ':l:n:u:v5:w:s:b:d:' PARAMS; do while getopts ':l:v5:w:b:' PARAMS; do
case "$PARAMS" in case "$PARAMS" in
l) l)
# use provided location for logFile # use provided location for logFile
logFile="${OPTARG}" logFile="${OPTARG}"
;; ;;
n)
# NextCloud webroot
ncRoot="${OPTARG%/}"
;;
u)
# webuser
webUser="${OPTARG}"
;;
v) v)
# verbose output from Borg # verbose output from Borg
borgCreateParams='--list --stats' borgCreateParams='--list --stats'
@ -304,18 +296,10 @@ while getopts ':l:n:u:v5:w:s:b:d:' 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%/}"
;;
b) b)
# path to file containing borgbackup settings and details # path to file containing borgbackup settings and details
borgDetails="${OPTARG%/}" borgDetails="${OPTARG%/}"
;; ;;
d)
# nextcloud data directory
ncDataDir="${OPTARG%/}"
;;
?) ?)
# unrecognized parameters trigger scriptHelp # unrecognized parameters trigger scriptHelp
scriptHelp scriptHelp