aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/webapp/WEB-INF/config
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-09-13 19:31:25 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2011-09-13 19:31:25 +0200
commit57127f5858ba9c73108e75f8d7a3d8a6cb1f8109 (patch)
tree82e1d5328ff59b110d2115981c23507e48784570 /sonar-server/src/main/webapp/WEB-INF/config
parent38ff19caeffef6048056ea26cb7bdaacd0c8cf52 (diff)
downloadsonarqube-57127f5858ba9c73108e75f8d7a3d8a6cb1f8109.tar.gz
sonarqube-57127f5858ba9c73108e75f8d7a3d8a6cb1f8109.zip
Fix support of JNDI datasource
Diffstat (limited to 'sonar-server/src/main/webapp/WEB-INF/config')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/config/database.yml8
1 files changed, 6 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/config/database.yml b/sonar-server/src/main/webapp/WEB-INF/config/database.yml
index 59788a4d189..7b755e4b2ba 100644
--- a/sonar-server/src/main/webapp/WEB-INF/config/database.yml
+++ b/sonar-server/src/main/webapp/WEB-INF/config/database.yml
@@ -17,8 +17,12 @@ base: &base
pool: <%= ::Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue('sonar.jdbc.maxActive') || 10 %>
# PostgreSQL
- schema_search_path: <%= ::Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue('sonar.jdbc.postgreSearchPath') %>
-
+<%
+ search_path = ::Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue('sonar.jdbc.postgreSearchPath')
+ if search_path
+%>
+ schema_search_path: <%= search_path %>
+<% end %>
# Oracle
<%
schema = ::Java::OrgSonarServerUi::JRubyFacade.getInstance().getConfigurationValue('sonar.hibernate.default_schema')