Added mailcow specific parameters

This commit is contained in:
Asif Bacchus 2018-10-19 21:56:16 -06:00
parent 72d14ba75b
commit 296e69f4a0

View File

@ -276,7 +276,7 @@ if [ -n "$1" ] && [[ ! "$1" =~ ^- ]]; then
fi fi
# use GetOpts to process parameters # use GetOpts to process parameters
while getopts ':l:v5:w:b:' PARAMS; do while getopts ':l:v5:w:b:m:d:1:2:' PARAMS; do
case "$PARAMS" in case "$PARAMS" in
l) l)
# use provided location for logFile # use provided location for logFile
@ -300,6 +300,22 @@ while getopts ':l:v5:w:b:' PARAMS; do
# path to file containing borgbackup settings and details # path to file containing borgbackup settings and details
borgDetails="${OPTARG%/}" borgDetails="${OPTARG%/}"
;; ;;
m)
# name of mailcow configuration file
mailcowConfigFile="${OPTARG}"
;;
d)
# name of docker-compose configuration file
dockerComposeFile="${OPTARG}"
;;
1)
# docker-compose stop timeout in seconds
dockerStopTimeout="${OPTARG}"
;;
2)
# docker-compose start timeout in seconds
dockerStartTimeout="${OPTARG}"
;;
?) ?)
# unrecognized parameters trigger scriptHelp # unrecognized parameters trigger scriptHelp
scriptHelp scriptHelp