blob: 6efae572ea5976e2b1e2f184aafcf38c7c02066a (
plain)
1
2
3
4
5
6
|
#!/bin/bash
PASSWORD="$(vault.sh read --format=json database/static-creds/postgres-postgres | jq -r .data.password)"
DSN="postgresql://postgres:${PASSWORD}@postgres.sea4.crute.me:5432/postgres?sslmode=disable"
psql "${DSN}"
|