mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-12-14 06:12:27 +00:00
22 lines
244 B
Bash
Executable file
22 lines
244 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd "$(dirname "$0")" || exit 1
|
|
|
|
failed=false
|
|
|
|
down() {
|
|
docker-compose down -v
|
|
}
|
|
|
|
docker-compose run monitor || failed=true
|
|
echo "
|
|
Result: failed=$failed"
|
|
|
|
if $failed; then
|
|
docker-compose logs mc
|
|
down
|
|
exit 1
|
|
else
|
|
down
|
|
fi
|
|
|