Added ncRoot references

This commit is contained in:
Asif Bacchus 2018-09-30 21:35:43 -06:00
parent ec70de618c
commit 5064736e90

View File

@ -143,6 +143,7 @@ unset PARAMS
unset sqlDumpDir unset sqlDumpDir
unset err503File unset err503File
unset webroot unset webroot
unset ncRoot
errorExplain=() errorExplain=()
exitWarn=() exitWarn=()
warningExplain=() warningExplain=()
@ -178,9 +179,8 @@ while getopts ':l:nv5:r:' PARAMS; do
logFile="${OPTARG}" logFile="${OPTARG}"
;; ;;
n) n)
# normal output from Borg (default) # NextCloud webroot
borgCreateParams='--stats' ncRoot="${OPTARG}"
borgPruneParams='--list'
;; ;;
v) v)
# verbose output from Borg # verbose output from Borg
@ -208,10 +208,10 @@ done
if [ $(id -u) -ne 0 ]; then if [ $(id -u) -ne 0 ]; then
echo -e "${err}This script MUST be run as ROOT. Exiting.${normal}" echo -e "${err}This script MUST be run as ROOT. Exiting.${normal}"
exit 2 exit 2
elif [ -z "$webroot" ]; then #elif [ -z "$ncRoot" ]; then
echo -e "\n${err}The NextCloud webroot must be specified (-r parameter)" \ # echo -e "\n${err}The NextCloud webroot must be specified (-n parameter)" \
"${normal}\n" # "${normal}\n"
exit 1 # exit 1
fi fi