[Mapbender-commits] r5178 - trunk/mapbender/resources/db
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Sat Dec 12 08:31:43 EST 2009
Author: astrid_emde
Date: 2009-12-12 08:31:42 -0500 (Sat, 12 Dec 2009)
New Revision: 5178
Modified:
trunk/mapbender/resources/db/update.sh
Log:
Modified: trunk/mapbender/resources/db/update.sh
===================================================================
--- trunk/mapbender/resources/db/update.sh 2009-12-12 13:30:42 UTC (rev 5177)
+++ trunk/mapbender/resources/db/update.sh 2009-12-12 13:31:42 UTC (rev 5178)
@@ -93,11 +93,11 @@
function set_db_config(){
echo ""
echo "set variables to input:"
- set DBVERSION = $1
- set DBHOST = $2
- set DBPORT = $3
- set DBNAME = $4
- set DBUSER = $5
+ set DBVERSION := 'postgreql'
+ set DBHOST := $2
+ set DBPORT := $3
+ set DBNAME := $4
+ set DBUSER := $5
}
function run_mysql_update(){
@@ -139,8 +139,14 @@
#magic starts here
show_disclaimer;
-#get_db_config;
-set_db_config;
+if [ $# -lt 1 ]
+then
+ echo "set_db_config - variables where passed when the script was called"
+ set_db_config;
+else
+ echo "get_db_config - variables have to be set"
+ get_db_config;
+fi;
show_db_config;
if [ $DBVERSION = "pgsql" ]
More information about the Mapbender_commits
mailing list