#! /bin/sh # killall postgres # rm -rf $PGDATA/* initdb pg_ctl start -w sleep 1 pg_ctl stop -m i cat > $PGDATA/recovery.conf <> $PGDATA/postgresql.conf <