start_postgres.sh 581 B

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