#!/bin/bash echo "host all all 192.168.115.0/24 password" >> /var/lib/postgresql/data/pg_hba.conf echo "host all all 10.252.252.0/24 password" >> /var/lib/postgresql/data/pg_hba.conf echo "host all all 177.67.197.146/32 password" >> /var/lib/postgresql/data/pg_hba.conf exec "$@"