#!/bin/bash cat << EOF > /var/lib/postgresql/data/pg_hba.conf # TYPE DATABASE USER ADDRESS METHOD local all all scram-sha-256 EOF