[Dive4elements-commits] [PATCH] Fix oracle backend configuration and allow INITSQLS statement
Wald Commits
scm-commit at wald.intevation.org
Tue Mar 12 18:21:56 CET 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1363108913 -3600
# Node ID f890d315240f2c7c92b70c73e19e22758ec98388
# Parent a859691ec4a0e2cffad0bf9b8851b86a4e15b864
Fix oracle backend configuration and allow INITSQLS statement
diff -r a859691ec4a0 -r f890d315240f contrib/make_flys_release/make_release.sh
--- a/contrib/make_flys_release/make_release.sh Tue Mar 12 17:09:25 2013 +0100
+++ b/contrib/make_flys_release/make_release.sh Tue Mar 12 18:21:53 2013 +0100
@@ -78,6 +78,7 @@
BACKENDBACK=${BACKENDBACK:-flys_2912}
BACKENDUSER=${BACKENDUSER:-flys_dami}
BACKENDPASS=${BACKENDPASS:-flys_dami}
+INITSQLS=${INITSQLS:-}
OPTS=`getopt -o ?w:,t,o \
-l help,oracle \
@@ -258,11 +259,12 @@
cat > $WORK_DIR/server/conf/backend-db.xml << EOF
<?xml version="1.0" encoding="UTF-8" ?>
<backend-database>
- <user>flys27</user>
- <password>flys27</password>
+ <user>$BACKENDUSER</user>
+ <password>$BACKENDPASS</password>
<dialect>org.hibernatespatial.oracle.OracleSpatial10gDialect</dialect>
<driver>oracle.jdbc.driver.OracleDriver</driver>
- <url>jdbc:oracle:thin:@//czech-republic.atlas.intevation.de:1521/XE</url>
+ <url>jdbc:oracle:thin:@//$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url>
+ <connection-init-sqls>$INITSQLS</connection-init-sqls>
</backend-database>
EOF
else
@@ -275,6 +277,7 @@
<dialect>org.hibernate.dialect.PostgreSQLDialect</dialect>
<driver>org.postgresql.Driver</driver>
<url>jdbc:postgresql://$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url>
+ <connection-init-sqls>$INITSQLS</connection-init-sqls>
</backend-database>
EOF
fi
More information about the Dive4elements-commits
mailing list