avoid socket issues
This commit is contained in:
parent
3e3d0ea130
commit
c5061e223c
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user