Compare commits
No commits in common. "f57841b69a13b10df6402bc114d543298f6c1960" and "b5247a085ebb9e0b79bf3ce5e289a83f7cabad2f" have entirely different histories.
f57841b69a
...
b5247a085e
@ -149,7 +149,7 @@ scriptHelp() {
|
|||||||
printf "%sUsage: %s [parameters]%s\n\n" "$bold" "$scriptName" "$norm"
|
printf "%sUsage: %s [parameters]%s\n\n" "$bold" "$scriptName" "$norm"
|
||||||
textblock "There are NO mandatory parameters. If a parameter is not supplied, its default value will be used. In the case of a switch parameter, it will remain DEactivated if NOT specified."
|
textblock "There are NO mandatory parameters. If a parameter is not supplied, its default value will be used. In the case of a switch parameter, it will remain DEactivated if NOT specified."
|
||||||
newline
|
newline
|
||||||
textblock "Parameters are listed then followed by a description of their effect on the following line. Finally, if a default value exists, it will be listed on the next line in (parentheses)."
|
textblock "Switches are listed then followed by a description of their effect on the following line. Finally, if a default value exists, it will be listed on the next line in (parentheses)."
|
||||||
newline
|
newline
|
||||||
textblock "${magenta}--- script related parameters ---${norm}"
|
textblock "${magenta}--- script related parameters ---${norm}"
|
||||||
newline
|
newline
|
||||||
@ -182,25 +182,7 @@ scriptHelp() {
|
|||||||
textblock "Path to where the 'error 503' file should be copied."
|
textblock "Path to where the 'error 503' file should be copied."
|
||||||
defaultsTextblock "(/usr/share/nginx/html/)"
|
defaultsTextblock "(/usr/share/nginx/html/)"
|
||||||
newline
|
newline
|
||||||
textblock "${magenta}--- mailcow related ---${norm}"
|
textblock "More details and examples of script usage can be found in the repo wiki at ${yellow}https://git.asifbacchus.app/asif/myGitea/wiki${norm}"
|
||||||
newline
|
|
||||||
switchTextblock "-d | --docker-compose"
|
|
||||||
textblock "Path to mailcow's 'docker-compose.yml' file."
|
|
||||||
defaultsTextblock "(/opt/mailcow-dockerized/docker-compose.yml)"
|
|
||||||
newline
|
|
||||||
switchTextblock "-m | --mailcow-config"
|
|
||||||
textblock "Path to mailcow configuration file ('mailcow.conf')."
|
|
||||||
defaultsTextblock "(/opt/mailcow-dockerized/mailcow.conf)"
|
|
||||||
newline
|
|
||||||
switchTextblock "-t1 | --dockerStartTimeout"
|
|
||||||
textblock "Seconds to wait for docker containers to start."
|
|
||||||
defaultsTextblock "(180)"
|
|
||||||
newline
|
|
||||||
switchTextblock "-t2 | --dockerStopTimeout"
|
|
||||||
textblock "Seconds to wait for docker containers to stop."
|
|
||||||
defaultsTextblock "(120)"
|
|
||||||
newline
|
|
||||||
textblock "More details and examples of script usage can be found in the repo wiki at ${yellow}https://git.asifbacchus.app/asif/MailcowBackup/wiki${norm}"
|
|
||||||
newline
|
newline
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,7 +246,7 @@ webroot="/usr/share/nginx/html"
|
|||||||
|
|
||||||
# mailcow/docker related
|
# mailcow/docker related
|
||||||
mcConfig='/opt/mailcow-dockerized/mailcow.conf'
|
mcConfig='/opt/mailcow-dockerized/mailcow.conf'
|
||||||
mcDockerCompose="/opt/mailcow-dockerized/docker-compose.yml"
|
mcDockerCompose="${mcConfig%/*}/docker-compose.yml"
|
||||||
dockerStartTimeout=180
|
dockerStartTimeout=180
|
||||||
dockerStopTimeout=120
|
dockerStopTimeout=120
|
||||||
|
|
||||||
@ -336,10 +318,10 @@ while [ $# -gt 0 ]; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-d|--docker-compose)
|
-d|--docker-compose)
|
||||||
# FULL path to mailcow docker-compose file
|
# path to mailcow docker-compose file
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [ -f "$2" ]; then
|
if [ -f "$2" ]; then
|
||||||
mcDockerCompose="$2"
|
mcDockerCompose="${2%/}"
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
badParam dne "$@"
|
badParam dne "$@"
|
||||||
@ -349,10 +331,10 @@ while [ $# -gt 0 ]; do
|
|||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
-m|--mailcow-config)
|
-m|--mailcow-config)
|
||||||
# FULL path to mailcow configuration file
|
# path to mailcow configuration file
|
||||||
if [ -n "$2" ]; then
|
if [ -n "$2" ]; then
|
||||||
if [ -f "$2" ]; then
|
if [ -f "$2" ]; then
|
||||||
mcConfig="$2"
|
mcConfig="${2%/}"
|
||||||
shift
|
shift
|
||||||
else
|
else
|
||||||
badParam dne "$@"
|
badParam dne "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user