Added parameter for nextcloud data directory
This commit is contained in:
parent
552f17163e
commit
444f737ac2
@ -150,6 +150,7 @@ unset ncRoot
|
|||||||
unset webUser
|
unset webUser
|
||||||
unset clean503
|
unset clean503
|
||||||
unset sqlParams
|
unset sqlParams
|
||||||
|
unset ncDataDir
|
||||||
unset borgXtra
|
unset borgXtra
|
||||||
unset borgExclude
|
unset borgExclude
|
||||||
unset borgPrune
|
unset borgPrune
|
||||||
@ -195,7 +196,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:s:b:' PARAMS; do
|
while getopts ':l:n:u:v5:w:s:b:d:' PARAMS; do
|
||||||
case "$PARAMS" in
|
case "$PARAMS" in
|
||||||
l)
|
l)
|
||||||
# use provided location for logFile
|
# use provided location for logFile
|
||||||
@ -231,6 +232,10 @@ while getopts ':l:n:u:v5:w:s:b:' PARAMS; do
|
|||||||
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user