Skip to content

Commit 74efa30

Browse files
committed
Added code to remove logstash volume on destroy
1 parent b4caec0 commit 74efa30

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

data-mapper-logstash/swarm.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ if [[ "${ACTION}" == "init" ]] || [[ "${ACTION}" == "up" ]]; then
8181
elif [[ "${ACTION}" == "down" ]]; then
8282
try "docker service scale instant_data-mapper-logstash=0" "Failed to scale down data-mapper-logstash"
8383
elif [[ "${ACTION}" == "destroy" ]]; then
84-
try "docker service rm instant_data-mapper-logstash" "Failed to remove data-mapper-logstash"
84+
docker::service_destroy data-mapper-logstash
85+
docker::try_remove_volume logstash-data
8586
else
8687
log error "Valid options are: init, up, down, or destroy"
8788
fi

0 commit comments

Comments
 (0)