[Mapbender-commits] r5169 - trunk/mapbender/resources/db

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Dec 12 08:18:32 EST 2009


Author: astrid_emde
Date: 2009-12-12 08:18:31 -0500 (Sat, 12 Dec 2009)
New Revision: 5169

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:16:37 UTC (rev 5168)
+++ trunk/mapbender/resources/db/update.sh	2009-12-12 13:18:31 UTC (rev 5169)
@@ -19,7 +19,7 @@
     echo " * provide a database user that can create a database"
     echo ""
     echo ""
-    echo "If everything is prepared you can continue."
+    echo "DBVERSION HOST PORT DBNAME DBUSER"
     echo ""
 }
 
@@ -82,20 +82,22 @@
     echo ""
     echo "Database Configuration:"
     echo "version:"  $DBVERSION
-    echo "encoding:" $DBENCODING
-    if [ $DBTEMPLATE ]
-    then
-        echo "postgres template:" $DBTEMPLATE
-    fi
     echo "db host:" $DBHOST
     echo "db port:" $DBPORT
     echo "dbname:" $DBNAME
     echo "user:"     $DBUSER
     echo ""
+}
 
+#show Database Configuration
+function set_db_config(){
+  $DBVERSION = $1
+  $DBHOST = $2
+  $DBPORT = $3
+  $DBNAME = $4
+  $DBUSER = $5
 }
 
-
 function run_mysql_update(){
     which mysql > /dev/null
     if [ $? -ne 0 ]
@@ -135,7 +137,8 @@
 
 #magic starts here
 show_disclaimer;
-get_db_config;
+#get_db_config;
+set_db_config;
 show_db_config;
 
 if [ $DBVERSION = "pgsql" ]



More information about the Mapbender_commits mailing list