Removed NC specific script parameters
This commit is contained in:
parent
abff332ce0
commit
72d14ba75b
@ -276,20 +276,12 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then
|
||||
fi
|
||||
|
||||
# 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
|
||||
l)
|
||||
# use provided location for logFile
|
||||
logFile="${OPTARG}"
|
||||
;;
|
||||
n)
|
||||
# NextCloud webroot
|
||||
ncRoot="${OPTARG%/}"
|
||||
;;
|
||||
u)
|
||||
# webuser
|
||||
webUser="${OPTARG}"
|
||||
;;
|
||||
v)
|
||||
# verbose output from Borg
|
||||
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
|
||||
webroot="${OPTARG%/}"
|
||||
;;
|
||||
s)
|
||||
# path to file containing SQL login details
|
||||
sqlDetails="${OPTARG%/}"
|
||||
;;
|
||||
b)
|
||||
# path to file containing borgbackup settings and details
|
||||
borgDetails="${OPTARG%/}"
|
||||
;;
|
||||
d)
|
||||
# nextcloud data directory
|
||||
ncDataDir="${OPTARG%/}"
|
||||
;;
|
||||
?)
|
||||
# unrecognized parameters trigger scriptHelp
|
||||
scriptHelp
|
||||
|
Loading…
Reference in New Issue
Block a user