Skip to content

Commit

Permalink
added shut down logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Nov 27, 2019
1 parent 2ee6c3d commit 2d00c4c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions start_doth_dns.bash
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,18 @@ while getopts ":fa:cI:i:n:t:d:NRUPDh" flag; do
done


# ##########################################################################################
# Shutting service down
if [[ ${_FLAG_DOWN_ALL} == 'y' ]]; then
printf "\n####################\n"
printf "\n%bINFO: %b Shutting DoTH-DNS down.\n\n" "${CYAN}" "${BLANK}"
docker-compose -f docker-compose.yaml -f docker-compose.traefik.yaml down || exit_dc_err
printf "\n\n%bSUCCESS:%b DoTH-DNS shut down.\n" "${GREEN}" "${BLANK}"
printf "\n####################\n\n"
exit 0
fi


# ##########################################################################################
# Starting line
printf "\n####################\n"
Expand Down

0 comments on commit 2d00c4c

Please sign in to comment.