Files
mtusi2026lab7/scripts/stop-one.sh
T
dykhanovaa 4b21efc2cc
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab7 completed
2026-11-20 20:37:41 +03:00

8 lines
154 B
Bash
Executable File

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
case "${TARGET_INSTANCE_ID:-}" in
api1|api2) docker compose stop "$TARGET_INSTANCE_ID" ;;
*) exit 2 ;;
esac