hack for town pg

This commit is contained in:
nate smith 2024-08-18 16:04:17 -05:00
parent 281e3ca53b
commit e4e5bbef6f
3 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
source ./pg.env source ./pg.env
pg_ctl init $PGCTL init
mkdir -p "$PGDATA/sockets" mkdir -p "$PGDATA/sockets"
echo "unix_socket_directories = 'sockets'" >> "$PGDATA/postgresql.conf" echo "unix_socket_directories = 'sockets'" >> "$PGDATA/postgresql.conf"

2
pg.env
View File

@ -1,3 +1,5 @@
# export PGCTL="/usr/lib/postgresql/14/bin/pg_ctl" # tilde.town
export PGCTL="pg_ctl"
export PGDATA="$PWD/pgdata" export PGDATA="$PWD/pgdata"
export PGHOST="$PGDATA/sockets" export PGHOST="$PGDATA/sockets"
export PGDATABASE="postgres" export PGDATABASE="postgres"

View File

@ -2,4 +2,4 @@
source ./pg.env source ./pg.env
pg_ctl start $PGCTL start