Mercurial > dive4elements > river
comparison contrib/make_flys_release/make_release.sh @ 8483:2db7a949ff8b
Use validation queries for release.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 27 Nov 2014 20:25:31 +0100 |
parents | 40717a3b94aa |
children | 026f4c684ee5 |
comparison
equal
deleted
inserted
replaced
8482:0c22ef71d154 | 8483:2db7a949ff8b |
---|---|
380 <user>$BACKENDUSER</user> | 380 <user>$BACKENDUSER</user> |
381 <password>$BACKENDPASS</password> | 381 <password>$BACKENDPASS</password> |
382 <dialect>org.hibernatespatial.oracle.OracleSpatial10gDialect</dialect> | 382 <dialect>org.hibernatespatial.oracle.OracleSpatial10gDialect</dialect> |
383 <driver>oracle.jdbc.driver.OracleDriver</driver> | 383 <driver>oracle.jdbc.driver.OracleDriver</driver> |
384 <url>jdbc:oracle:thin:@//$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url> | 384 <url>jdbc:oracle:thin:@//$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url> |
385 <validation-query>select 1 from rivers</validation-query> | |
385 <connection-init-sqls>$INITSQLS</connection-init-sqls> | 386 <connection-init-sqls>$INITSQLS</connection-init-sqls> |
386 </backend-database> | 387 </backend-database> |
387 EOF | 388 EOF |
388 | 389 |
389 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF | 390 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF |
392 <user>$SEDDBUSER</user> | 393 <user>$SEDDBUSER</user> |
393 <password>$SEDDBPASS</password> | 394 <password>$SEDDBPASS</password> |
394 <dialect>org.hibernate.dialect.Oracle9iDialect</dialect> | 395 <dialect>org.hibernate.dialect.Oracle9iDialect</dialect> |
395 <driver>oracle.jdbc.driver.OracleDriver</driver> | 396 <driver>oracle.jdbc.driver.OracleDriver</driver> |
396 <url>jdbc:oracle:thin:@//$SEDDBURL:$SEDDBPORT/$SEDDBBACK</url> | 397 <url>jdbc:oracle:thin:@//$SEDDBURL:$SEDDBPORT/$SEDDBBACK</url> |
398 <validation-query>select 1 from gewaesser</validation-query> | |
397 <connection-init-sqls>$SEDINITSQLS</connection-init-sqls> | 399 <connection-init-sqls>$SEDINITSQLS</connection-init-sqls> |
398 </seddb-database> | 400 </seddb-database> |
399 EOF | 401 EOF |
400 | 402 |
401 else | 403 else |
406 <user>$BACKENDUSER</user> | 408 <user>$BACKENDUSER</user> |
407 <password>$BACKENDPASS</password> | 409 <password>$BACKENDPASS</password> |
408 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> | 410 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> |
409 <driver>org.postgresql.Driver</driver> | 411 <driver>org.postgresql.Driver</driver> |
410 <url>jdbc:postgresql://$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url> | 412 <url>jdbc:postgresql://$BACKENDURL:$BACKENDPORT/$BACKENDBACK</url> |
413 <validation-query>select 1 from rivers</validation-query> | |
411 <connection-init-sqls>$INITSQLS</connection-init-sqls> | 414 <connection-init-sqls>$INITSQLS</connection-init-sqls> |
412 </backend-database> | 415 </backend-database> |
413 EOF | 416 EOF |
414 | 417 |
415 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF | 418 cat > $WORK_DIR/server/conf/seddb-db.xml << EOF |
418 <user>$SEDDBUSER</user> | 421 <user>$SEDDBUSER</user> |
419 <password>$SEDDBPASS</password> | 422 <password>$SEDDBPASS</password> |
420 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> | 423 <dialect>org.hibernate.dialect.PostgreSQLDialect</dialect> |
421 <driver>org.postgresql.Driver</driver> | 424 <driver>org.postgresql.Driver</driver> |
422 <url>jdbc:postgresql://$SEDDBURL:$SEDDBPORT/$SEDDBBACK</url> | 425 <url>jdbc:postgresql://$SEDDBURL:$SEDDBPORT/$SEDDBBACK</url> |
426 <validation-query>select 1 from gewaesser</validation-query> | |
423 </seddb-database> | 427 </seddb-database> |
424 EOF | 428 EOF |
425 | 429 |
426 fi | 430 fi |
427 | 431 |