zgrab2/integration_tests/mongodb/cleanup.sh

16 lines
347 B
Bash
Raw Normal View History

2018-08-21 17:11:34 +00:00
#!/usr/bin/env bash
# Keep cleaning up even if something fails
set +e
2018-08-21 17:33:56 +00:00
# Stop all MongoDB containers.
2018-08-21 17:11:34 +00:00
versions="3.2.20 3.6.6 4.0.1 4.1.2"
for version in $versions; do
CONTAINER_NAME="zgrab_mongodb-$version"
echo "mongodb/cleanup: Stopping $CONTAINER_NAME..."
docker stop $CONTAINER_NAME
echo "mongodb/cleanup: ...stopped."
done