Update 'Install_GeoNetwork'

Kaimbacher 2022-06-30 15:35:12 +00:00
parent d492d944aa
commit 7c5d75d602

@ -12,7 +12,7 @@ https://next.agrarforschung.at/index.php/s/wAPmRtsY5waLGYb/download?path=%2F&fil
`sudo systemctl restart jetty9.service` `sudo systemctl restart jetty9.service`
## 2. GeoNetwork Configuration ## 2. GeoNetwork Configuration
### Define DB connection: ### Define DB connection
`sudo nano /opt/tomcat/webapps/geonetwork/WEB-INF/config-db/jdbc.properties` `sudo nano /opt/tomcat/webapps/geonetwork/WEB-INF/config-db/jdbc.properties`
``` ```
jdbc.username=#{systemEnvironment['GEONETWORK_DB_USERNAME']?:'gn_app'} jdbc.username=#{systemEnvironment['GEONETWORK_DB_USERNAME']?:'gn_app'}
@ -28,3 +28,11 @@ activate postgresql-postgis and deactivate h2:
<import resource="../config-db/postgres-postgis.xml"/> <import resource="../config-db/postgres-postgis.xml"/>
<!-- <import resource="../config-db/${geonetwork.db.type:h2}.xml"/> --> <!-- <import resource="../config-db/${geonetwork.db.type:h2}.xml"/> -->
``` ```
### Define tmp directory for file caching
`sudo nano /opt/tomcat/webapps/geonetwork/WEB-INF/classes/cache/cache.ccf` \
add the following path:
```
jcs.auxiliary.DC.attributes.DiskPath=${java.io.tmpdir}/jcs_caching
```