#!/bin/bash set -e # listen on all interfaces cat >> /etc/postgresql/9.1/main/postgresql.conf <> /etc/postgresql/9.1/main/pg_hba.conf < \password db_user *" echo "* sudo -u postgres createdb -O db_user db_name *" echo "*************************************************************************" echo ""