start_postgres.sh 646 B

123456789101112
  1. #!/bin/bash
  2. # load java environment variables
  3. source $IROOT/java7.installed
  4. sed -i 's|db.ConnectString = .*/|db.ConnectString = '"$DBHOST"':5432/|g' Docroot/WEB-INF/GeminiHello.conf
  5. sed -i 's|root-directory=".*/FrameworkBenchmarks/frameworks/Java/gemini|root-directory="'"$TROOT"'|g' Docroot/WEB-INF/resin.xml
  6. sed -i 's|db.Driver.Class = .*|db.Driver.Class = org.postgresql.Driver|g' Docroot/WEB-INF/GeminiHello.conf
  7. sed -i 's|db.Driver.UrlPrefix = .*|db.Driver.UrlPrefix = jdbc:postgresql://|g' Docroot/WEB-INF/GeminiHello.conf
  8. mkdir -p Docroot/WEB-INF/classes
  9. ant compile
  10. $RESIN_HOME/bin/resinctl -conf $TROOT/Docroot/WEB-INF/resin.xml start