Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526export PGROOT="$PWD/.postgres"export PGDATA="$PGROOT/data"export PGPORT=54329
mkdir -p "$PGROOT"if [ ! -f "$PGDATA/PG_VERSION" ]; then echo "Initializing PostgreSQL..." initdb -D "$PGDATA" --auth=trustfi
if ! pg_isready -h localhost -p "$PGPORT" >/dev/null 2>&1; then echo "Starting PostgreSQL..." pg_ctl \ -D "$PGDATA" \ -l "$PGROOT/postgres.log" \ -o "-p $PGPORT" \ startfi
createdb \ -h localhost \ -p "$PGPORT" \ persista \ >/dev/null 2>&1 || true echo "Postgres data: $PGDATA"