Skip to content

Commit

Permalink
fix: detect docker compose file when turn things off
Browse files Browse the repository at this point in the history
  • Loading branch information
icyleaf committed Aug 27, 2024
1 parent f2c75ee commit 08557bc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
6 changes: 1 addition & 5 deletions scripts/configure-cert.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ check_or_generate_selfsigned_ssl () {
##
choose_deploy () {
set +u
echo "ZEALOT_FORCE_SSL=${ZEALOT_FORCE_SSL}"
if [ -n $ZEALOT_FORCE_SSL ]; then
case "$ZEALOT_FORCE_SSL" in
"letsencrypt" )
Expand All @@ -104,13 +103,10 @@ choose_deploy () {
SSL_NAME=false
;;
* )
echo "Invalid ZEALOT_FORCE_SSL value, Quitting"
exit
echo "ZEALOT_FORCE_SSL is not set, setup it."
;;
esac
echo "${_endgroup}"
set -u
return
fi
set -u

Expand Down
12 changes: 7 additions & 5 deletions scripts/turn-things-off.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
echo "${_group}Turning things off ..."

if [[ -n "$MINIMIZE_DOWNTIME" ]]; then
# Stop everything but proxy service
$dc rm -fsv $($dc config --services | grep -v -E '^(web)$')
else
$dc down -t $STOP_TIMEOUT --rmi local --remove-orphans
if [[ -f "$DOCKER_COMPOSE_FILE" ]]; then
if [[ -n "$MINIMIZE_DOWNTIME" ]]; then
# Stop everything but proxy service
$dc rm -fsv $($dc config --services | grep -v -E '^(web)$')
else
$dc down -t $STOP_TIMEOUT --rmi local --remove-orphans
fi
fi

echo "${_endgroup}"

0 comments on commit 08557bc

Please sign in to comment.