# HG changeset patch # User Andre Heinecke # Date 1370532827 -7200 # Node ID 0aa9c5d8dccb0961de0027cf0af31fe12f5bfda4 # Parent 8f129977e76ea21f1cd176a57b591a9ed628866b Switch default seddb to postgres and handle the configuration diff -r 8f129977e76e -r 0aa9c5d8dccb contrib/make_flys_release/make_release.sh --- a/contrib/make_flys_release/make_release.sh Thu Jun 06 17:29:24 2013 +0200 +++ b/contrib/make_flys_release/make_release.sh Thu Jun 06 17:33:47 2013 +0200 @@ -72,10 +72,10 @@ # Seddb Configuration SEDDBURL=${SEDDBURL:-czech-republic.atlas.intevation.de} -SEDDBPORT=${SEDDBPORT:-1521} -SEDDBBACK=${SEDDBBACK:-XE} -SEDDBUSER=${SEDDBUSER:-seddb} -SEDDBPASS=${SEDDBPASS:-seddbpass} +SEDDBPORT=${SEDDBPORT:-5432} +SEDDBBACK=${SEDDBBACK:-seddb} +SEDDBUSER=${SEDDBUSER:-flys} +SEDDBPASS=${SEDDBPASS:-flys} SEDINITSQLS=${SEDINITSQLS:-} @@ -296,18 +296,6 @@ -e "s@http://example.com@${WIKI_URL}@g" \ $WORK_DIR/server/conf/conf.xml -cat > $WORK_DIR/server/conf/seddb-db.xml << EOF - - - - $SEDDBUSER - $SEDDBPASS - org.hibernate.dialect.Oracle9iDialect - oracle.jdbc.driver.OracleDriver - jdbc:oracle:thin:@//$SEDDBURL:$SEDDBPORT/$SEDDBBACK - $SEDINITSQLS - -EOF if [ "$BUILD_ORACLE" = "TRUE" ]; then # Oracle backend configuration @@ -322,6 +310,19 @@ $INITSQLS EOF + +cat > $WORK_DIR/server/conf/seddb-db.xml << EOF + + + $SEDDBUSER + $SEDDBPASS + org.hibernate.dialect.Oracle9iDialect + oracle.jdbc.driver.OracleDriver + jdbc:oracle:thin:@//$SEDDBURL:$SEDDBPORT/$SEDDBBACK + $SEDINITSQLS + +EOF + else #Postgresql backend configuration cat > $WORK_DIR/server/conf/backend-db.xml << EOF @@ -335,6 +336,18 @@ $INITSQLS EOF + +cat > $WORK_DIR/server/conf/seddb-db.xml << EOF + + + $SEDDBUSER + $SEDDBPASS + org.hibernate.dialect.PostgreSQLDialect + org.postgresql.Driver + jdbc:postgresql://$SEDDBURL:$SEDDBPORT/$SEDDBBACK + +EOF + fi mkdir $WORK_DIR/artifactsdb