forked from mtusi2026/mtusi2026lab7
12 lines
403 B
Bash
12 lines
403 B
Bash
#!/bin/sh
|
|
set -eu
|
|
. /run/s3/env
|
|
export DATABASE_URL="$(cat /run/operator/database_url)"
|
|
export S3_ACCESS_KEY_ID="$RUSTFS_ACCESS_KEY"
|
|
export S3_SECRET_ACCESS_KEY="$RUSTFS_SECRET_KEY"
|
|
case "${1:-}" in
|
|
cleanup_staging|replay_failed|reprocess_pipeline) script=$1; shift ;;
|
|
*) echo "Use cleanup_staging, replay_failed or reprocess_pipeline" >&2; exit 2 ;;
|
|
esac
|
|
exec python "/app/scripts/$script.py" "$@"
|