Files
mtusi2026lab2/infra/migrate.sh
T
Khakimov Dmitrij 300ef7714e
Skeleton contracts / contracts (pull_request) Canceled after 0s
lab2 done
2026-10-06 22:38:28 +03:00

9 lines
268 B
Bash
Executable File

#!/bin/sh
set -eu
# Keep the password out of argv and disable automatic dotenv loading.
if [ -n "${POSTGRES_PASSWORD_FILE:-}" ]; then
PGPASSWORD=$(cat "$POSTGRES_PASSWORD_FILE")
export PGPASSWORD
fi
exec goose -env /dev/null -dir /migrations -timeout 30s "$@"