Files
mtusi2026lab5/scripts/replay-attachment.sh
T

12 lines
389 B
Bash
Executable File

#!/bin/sh
set -eu
if [ "$#" -ne 1 ]; then
printf '%s\n' 'usage: replay-attachment.sh ATTACHMENT_ID' >&2
exit 2
fi
script_dir=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$(dirname -- "$script_dir")"
compose_file=${COMPOSE_FILE_PATH:-compose.yaml}
docker compose -f "$compose_file" --env-file .env run --rm \
publisher python -m app.tools.replay_failed --attachment-id "$1"