Advertisement
Guest User

Untitled

a guest
Oct 24th, 2016
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.33 KB | None | 0 0
  1. # Configure GeoNetwork
  2. export GN_EXT_DIR=/home/geonetwork/config-overrides
  3.  
  4. export GN_DATA_DIR=/home/geonetwork/data
  5. export JAVA_OPTS="-Dgeonetwork.dir=$GN_DATA_DIR"
  6.  
  7. # Configure override file
  8. export GN_OVR_PROPNAME=geonetwork.jeeves.configuration.overrides.file
  9. export GN_OVR_FILE=$GN_EXT_DIR/config-overrides.xml
  10. export JAVA_OPTS="$JAVA_OPTS -D$GN_OVR_PROPNAME=$GN_OVR_FILE"
  11.  
  12. <overrides>
  13. <properties></properties>
  14. <spring>
  15. <import file="/home/geonetwork/config-overrides/config-db-postgres.xml"/>
  16.  
  17. <import file="/home/geonetwork/config-overrides/config-datastore.xml"/>
  18. <!-- Dialect for PostgreSQL -->
  19. <set bean="jpaVendorAdapter" property="databasePlatform" value="org.hibernate.dialect.PostgreSQLDialect"/>
  20.  
  21. </spring>
  22. <!-- TO BE IMPLEMENTED -->
  23. <file name=".*/iso19139/layout/config-editor.xml">
  24. <replaceAtt xpath="/editor/views/view[@name='inspire']" attName="disabled" value="false"/>
  25. </file>
  26. <!-- TO BE CHECKED -->
  27. <textFile name="data-db-default.sql">
  28. <update linePattern="(INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/inspire/enable', ').+?('.*)">$1true$2</update>
  29. <update linePattern="(INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/inspire/enableSearchPanel', ').+?('.*)">$1true$2</update>
  30. </textFile>
  31. </overrides>
  32.  
  33. <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema
  34. /context" default-lazy-init="true" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http
  35. ://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  36. <context:property-placeholder location="file:///home/geonetwork/config-overrides/geonetwork.properties" file-encoding="UTF-8" ignore-unresolvable="true" order="0
  37. "/>
  38. <!--
  39. Values to be injected in the default bean jdbcDataSource
  40. -->
  41. <!-- Params for PostgreSQL DBMS -->
  42. <bean id="jpaVendorAdapterDatabaseParam" class="java.lang.String">
  43. <constructor-arg value="POSTGRESQL"/>
  44. </bean>
  45. <bean id="jdbcDriverClassName" class="java.lang.String">
  46. <constructor-arg value="org.postgresql.Driver"/>
  47. </bean>
  48. <bean id="jdbcURL" class="java.lang.String">
  49. <constructor-arg value="jdbc:postgresql://${jdbc.host}:5432/${jdbc.database}"/>
  50. </bean>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement