avoid socket issues

This commit is contained in:
Rachel Lambda Samuelsson 2023-08-10 01:15:19 +02:00
parent 3e3d0ea130
commit c5061e223c

View File

@ -30,10 +30,10 @@ pg_ctl start --pgdata=./matabas-db --log=./matabas-db/matabas.log --options="-p
trap exitHook EXIT
log "Skapar matabas"
createdb -p "$PGPORT" matabas 2>>./matabas-db/matabas.log || log "Matabasen finns, skriver ej över"
createdb -h localhost -p "$PGPORT" matabas 2>>./matabas-db/matabas.log || log "Matabasen finns, skriver ej över"
log "Ställer in schema.sql"
psql -p "$PGPORT" "$PBDATABASE" < schema.sql
psql -h localhost -p "$PGPORT" "$PBDATABASE" < schema.sql
P="$PWD"
clean() {