Set default params and cleaned up comments for the same

This commit is contained in:
Asif Bacchus 2018-09-30 20:06:25 -06:00
parent 3733942596
commit bd22db85df

View File

@ -132,13 +132,16 @@ function cleanup {
scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
scriptName="$( basename ${0} )"
logFile="$scriptPath/${scriptName%.*}.log"
# set err503File default to '503.html' in same directory as script
err503File="$scriptPath/503.html"
# set borg parameters to 'normal' verbosity
borgCreateParams='--stats'
borgPruneParams='--list'
# set script parameters to null and initialize array variables
### Set script parameters to null and initialize array variables
unset PARAMS
unset borgCreateParams
unset borgPruneParams
unset sqlDumpDir
unset err503File
unset webroot
errorExplain=()
exitWarn=()
@ -174,7 +177,7 @@ while getopts ':l:nv5:r:' PARAMS; do
logFile="${OPTARG}"
;;
n)
# normal output from Borg
# normal output from Borg (default)
borgCreateParams='--stats'
borgPruneParams='--list'
;;