Skip to content

Commit

Permalink
added -D flag for shutting down
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Nov 27, 2019
1 parent 89ec7c6 commit 2ee6c3d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions start_doth_dns.bash
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ exit_dc_err() {
# Func for showing usage string
usage_string() {
printf "\nUsage: %s [-f] [-a <arm|x86>] [-c] [-I <INTERFACE>] [-i <IP ADDRESS>] `
`[-n <HOSTNAME>] [-t <TIMEZONE>] [-d <DOMAIN>] [-N] [-R] [-U] [-P] [-h]\n" "$0" 1>&2;
`[-n <HOSTNAME>] [-t <TIMEZONE>] [-d <DOMAIN>] [-N] [-R] [-U] [-P] [-D] [-h]\n" "$0" 1>&2;
}

# Func for showing usage
Expand All @@ -79,7 +79,7 @@ help() {

# ##########################################################################################
# Catching flags
while getopts ":fa:cI:i:n:t:d:NRUPh" flag; do
while getopts ":fa:cI:i:n:t:d:NRUPDh" flag; do
case ${flag} in
f) # Set for overwriting existing configs with new ones.
_FLAG_FRESH='y'
Expand Down Expand Up @@ -121,6 +121,9 @@ while getopts ":fa:cI:i:n:t:d:NRUPh" flag; do
P) # Start without reverse proxy (`traefik`).
_FLAG_NO_PROXY='y'
;;
D) # Shut all containers and the network down.
_FLAG_DOWN_ALL='y'
;;
h) # Shows this help page.
help
;;
Expand Down

0 comments on commit 2ee6c3d

Please sign in to comment.