ЛР 3 - БВТ2304 - Гончаревская.Е.А. - на 3

This commit is contained in:
Katarhi
2026-11-02 19:12:26 +03:00
parent 0ab3a341aa
commit 486afb97bc
10 changed files with 1102 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
set -eu
: "${TARGET_INSTANCE_ID:?TARGET_INSTANCE_ID is required}"
case "$TARGET_INSTANCE_ID" in
*[!a-fA-F0-9-]*|'') echo "Invalid API instance id" >&2; exit 2 ;;
esac
docker stop --time 5 "$TARGET_INSTANCE_ID" >/dev/null