Spaces:
Sleeping
Sleeping
Download scripts/stop.ps1 from elvigar/finance-simulator: direct link, hf CLI and curl.
- Browser
- Download file 513 Bytes
-
https://huggingface.co/spaces/elvigar/finance-simulator/resolve/main/scripts/stop.ps1
- Command line
-
hf download hf://spaces/elvigar/finance-simulator/scripts/stop.ps1
-
curl -L -o stop.ps1 https://huggingface.co/spaces/elvigar/finance-simulator/resolve/main/scripts/stop.ps1
513 Bytes
| # Stop and remove the FinAlly Docker container. Does not touch db/ data. | |
| # Requires: PowerShell, Docker Desktop. Tested on Windows. | |
| # Usage: scripts\stop.ps1 | |
| $ErrorActionPreference = "Stop" | |
| $ContainerName = "finally" | |
| $existing = docker ps -a --filter "name=^/$ContainerName`$" --format "{{.Names}}" | |
| if ($existing -eq $ContainerName) { | |
| docker stop $ContainerName 2>$null | Out-Null | |
| docker rm $ContainerName | Out-Null | |
| Write-Host "FinAlly stopped." | |
| } else { | |
| Write-Host "FinAlly is not running." | |
| } | |