Update 'Install_GeoNetwork'

Kaimbacher 2022-06-30 15:31:23 +00:00
parent dd8383e87f
commit d492d944aa

@ -1,4 +1,4 @@
## GeoNetwork Installation
## 1. GeoNetwork Installation
Download zip package including the WAR file:
https://next.agrarforschung.at/index.php/s/wAPmRtsY5waLGYb/download?path=%2F&files=geonetwork-enterprise-2022.2.zip
@ -11,8 +11,8 @@ https://next.agrarforschung.at/index.php/s/wAPmRtsY5waLGYb/download?path=%2F&fil
`sudo -u jetty cp geonetwork.war /opt/webbase/webapps/` \
`sudo systemctl restart jetty9.service`
## GeoNetwork Configuration
### define DB connection:
## 2. GeoNetwork Configuration
### Define DB connection:
`sudo nano /opt/tomcat/webapps/geonetwork/WEB-INF/config-db/jdbc.properties`
```
jdbc.username=#{systemEnvironment['GEONETWORK_DB_USERNAME']?:'gn_app'}
@ -20,4 +20,11 @@ jdbc.password=#{systemEnvironment['GEONETWORK_DB_PASSWORD']?:'gn_app007'}
jdbc.database=#{systemEnvironment['GEONETWORK_DB_NAME']?:'gn_db'}
jdbc.host=#{systemEnvironment['GEONETWORK_DB_HOST']?:'localhost'}
jdbc.port=#{systemEnvironment['GEONETWORK_DB_PORT']?:'5432'}
```
```
`sudo nano /opt/tomcat_gn4/webapps/geonetwork/WEB-INF/config-node/srv.xml` \
activate postgresql-postgis and deactivate h2:
``` html
<import resource="../config-db/postgres-postgis.xml"/>
<!-- <import resource="../config-db/${geonetwork.db.type:h2}.xml"/> -->
```