Skip to content

Commit f63e5b6

Browse files
committed
Unification
1 parent 44a9ebe commit f63e5b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/rabbit/Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ ${CLEAN_VOLUMES_TEMP_COMPOSE}: docker-compose.clean-volumes.yaml .env
5959
@${REPO_BASE_DIR}/scripts/docker-stack-config.bash -e .env $< > $@
6060

6161
TIMEOUT = 2m
62-
delete-volumes: ${CLEAN_VOLUMES_TEMP_COMPOSE} guard-optional-bool-FORCE_CONFIRM
63-
@$(call confirm_action,Forever delete all rabbit data?,yes,$(FORCE_CONFIRM))
62+
delete-volumes: ${CLEAN_VOLUMES_TEMP_COMPOSE} guard-optional-TIMEOUT guard-optional-bool-FORCE_CONFIRM
63+
@$(call confirm_action,Forever delete all rabbit data?,yes,${FORCE_CONFIRM})
6464
## avoid accumulating tasks https://github.com/moby/moby/issues/45443
6565
@docker stack rm --detach=false ${CLEAN_VOLUMES_STACK_NAME}
6666
## use --detach=false to wait until all jobs complete successfully
67-
@timeout ${TIMEOUT} \
67+
@timeout ${TIMEOUT} \
6868
docker stack deploy --detach=false --with-registry-auth --prune --compose-file ${CLEAN_VOLUMES_TEMP_COMPOSE} ${CLEAN_VOLUMES_STACK_NAME}
6969
@docker stack rm ${CLEAN_VOLUMES_STACK_NAME}
7070

@@ -73,7 +73,7 @@ delete-volumes: ${CLEAN_VOLUMES_TEMP_COMPOSE} guard-optional-bool-FORCE_CONFIRM
7373
#
7474

7575
down: guard-optional-bool-FORCE_CONFIRM
76-
@$(call confirm_action,Are you sure you want to stop the RabbitMQ cluster?,yes,$(FORCE_CONFIRM))
76+
@$(call confirm_action,Are you sure you want to stop the RabbitMQ cluster?,yes,${FORCE_CONFIRM})
7777
@docker stack rm ${STACK_NAME}
7878

7979
destroy-cluster-with-data: down delete-volumes

0 commit comments

Comments
 (0)