Skip to content

Commit

Permalink
Merge pull request #1882 from manics/rebased/dev_4_4/omero_homebrew_p…
Browse files Browse the repository at this point in the history
…ostgres_start

Remove duplicate postgres startup #11793 (rebased onto dev_4_4)
  • Loading branch information
joshmoore committed Dec 9, 2013
2 parents 82f0e01 + 242270e commit 2a50f67
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/hudson/OMERO-homebrew-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ export PYTHONPATH=$(bin/brew --prefix omero)/lib/python:$ICE_HOME/python
export PATH=$(bin/brew --prefix)/bin:$(bin/brew --prefix)/sbin:/usr/local/lib/node_modules:$ICE_HOME/bin:$PATH
export DYLD_LIBRARY_PATH=$ICE_HOME/lib:$ICE_HOME/python:${DYLD_LIBRARY_PATH-}

# Note: If postgres startup fails it's probably because there was an old
# process still running.
# Create PostgreSQL database
if [ -d "$PSQL_DIR" ]; then
rm -rf $PSQL_DIR
fi
bin/initdb $PSQL_DIR
bin/brew services restart postgresql
bin/pg_ctl -D $PSQL_DIR -l $PSQL_DIR/server.log start
bin/pg_ctl -D $PSQL_DIR -l $PSQL_DIR/server.log -w start

# Create user and database
bin/createuser -w -D -R -S db_user
Expand Down

0 comments on commit 2a50f67

Please sign in to comment.