#!/bin/sh if [ -z $(which initdb) ] ; then echo "Postgres not found, you may need to launch like so: PATH=\$PATH:/usr/lib/postgresql/9.3/bin/ $0" exit 1 fi ## Thanks to Matwey V. Kornilov ( https://github.com/matwey ) for ## this: initdb --locale en_US.UTF-8 datadir cat > datadir/postgresql.conf < datadir/pg_hba.conf <