Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Configure GeoNetwork
- export GN_EXT_DIR=/home/geonetwork/config-overrides
- export GN_DATA_DIR=/home/geonetwork/data
- export JAVA_OPTS="-Dgeonetwork.dir=$GN_DATA_DIR"
- # Configure override file
- export GN_OVR_PROPNAME=geonetwork.jeeves.configuration.overrides.file
- export GN_OVR_FILE=$GN_EXT_DIR/config-overrides.xml
- export JAVA_OPTS="$JAVA_OPTS -D$GN_OVR_PROPNAME=$GN_OVR_FILE"
- <overrides>
- <properties></properties>
- <spring>
- <import file="/home/geonetwork/config-overrides/config-db-postgres.xml"/>
- <import file="/home/geonetwork/config-overrides/config-datastore.xml"/>
- <!-- Dialect for PostgreSQL -->
- <set bean="jpaVendorAdapter" property="databasePlatform" value="org.hibernate.dialect.PostgreSQLDialect"/>
- </spring>
- <!-- TO BE IMPLEMENTED -->
- <file name=".*/iso19139/layout/config-editor.xml">
- <replaceAtt xpath="/editor/views/view[@name='inspire']" attName="disabled" value="false"/>
- </file>
- <!-- TO BE CHECKED -->
- <textFile name="data-db-default.sql">
- <update linePattern="(INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/inspire/enable', ').+?('.*)">$1true$2</update>
- <update linePattern="(INSERT INTO Settings (name, value, datatype, position, internal) VALUES ('system/inspire/enableSearchPanel', ').+?('.*)">$1true$2</update>
- </textFile>
- </overrides>
- <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema
- /context" default-lazy-init="true" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http
- ://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
- <context:property-placeholder location="file:///home/geonetwork/config-overrides/geonetwork.properties" file-encoding="UTF-8" ignore-unresolvable="true" order="0
- "/>
- <!--
- Values to be injected in the default bean jdbcDataSource
- -->
- <!-- Params for PostgreSQL DBMS -->
- <bean id="jpaVendorAdapterDatabaseParam" class="java.lang.String">
- <constructor-arg value="POSTGRESQL"/>
- </bean>
- <bean id="jdbcDriverClassName" class="java.lang.String">
- <constructor-arg value="org.postgresql.Driver"/>
- </bean>
- <bean id="jdbcURL" class="java.lang.String">
- <constructor-arg value="jdbc:postgresql://${jdbc.host}:5432/${jdbc.database}"/>
- </bean>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement