Files
mtusi2026lab7/infra/security/db-grants.sh
T
2026-11-24 12:20:21 +03:00

5 lines
174 B
Bash

#!/bin/sh
set -eu
export PGPASSWORD="$(cat /run/secrets/postgres_password)"
exec psql -X -v ON_ERROR_STOP=1 -h postgres -U messenger -d messenger -f /bootstrap/db-grants.sql