diff --git a/buildScripts/setupEnv.sh b/buildScripts/setupEnv.sh index 6ab2985..1a57c1e 100644 --- a/buildScripts/setupEnv.sh +++ b/buildScripts/setupEnv.sh @@ -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() {