#!/bin/sh # The public failover test sets TARGET_INSTANCE_ID from the actual response header. set -eu cd "$(dirname "$0")/.." case "${TARGET_INSTANCE_ID:?missing TARGET_INSTANCE_ID}" in api1|api2) docker compose --env-file .env stop --timeout 1 "$TARGET_INSTANCE_ID" ;; *) echo 'Unexpected instance alias' >&2; exit 2 ;; esac