Spaces:
Sleeping
Sleeping
Download scripts/stop.sh from elvigar/finance-simulator: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/spaces/elvigar/finance-simulator/resolve/main/scripts/stop.sh
- Command line
-
hf download hf://spaces/elvigar/finance-simulator/scripts/stop.sh
-
curl -L -o stop.sh https://huggingface.co/spaces/elvigar/finance-simulator/resolve/main/scripts/stop.sh
493 Bytes
| # Stop and remove the FinAlly Docker container. Does not touch db/ data. | |
| # Requires: bash, docker. Tested on macOS and Linux. | |
| # Usage: scripts/stop.sh | |
| set -euo pipefail | |
| CONTAINER_NAME="finally" | |
| if docker ps -a --filter "name=^/${CONTAINER_NAME}$" --format '{{.Names}}' | grep -q "^${CONTAINER_NAME}$"; then | |
| docker stop "$CONTAINER_NAME" >/dev/null 2>&1 || true | |
| docker rm "$CONTAINER_NAME" >/dev/null | |
| echo "FinAlly stopped." | |
| else | |
| echo "FinAlly is not running." | |
| fi | |