#!/bin/bash # default options destroy_existing=0 # local variables initialized=0 function helptext { cat <> "$PGDATA/postgresql.conf" << EOF unix_socket_directories = 'sockets' listen_addresses = '' EOF initialized=1 fi pg_ctl start function cleanup { set -x pg_ctl stop } trap 'cleanup' SIGINT if [ $initialized -eq 1 ]; then createdb postgres_test fi cat > pgconfig.sh <