[Mapbender-commits] r8400 - trunk/mapbender/resources/db
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jul 2 06:07:02 PDT 2012
Author: tbaschetti
Date: 2012-07-02 06:07:02 -0700 (Mon, 02 Jul 2012)
New Revision: 8400
Modified:
trunk/mapbender/resources/db/install.bat
trunk/mapbender/resources/db/install.sh
Log:
use template_postgis instead template0
http://trac.osgeo.org/mapbender/ticket/881
Modified: trunk/mapbender/resources/db/install.bat
===================================================================
--- trunk/mapbender/resources/db/install.bat 2012-07-02 13:06:44 UTC (rev 8399)
+++ trunk/mapbender/resources/db/install.bat 2012-07-02 13:07:02 UTC (rev 8400)
@@ -23,7 +23,7 @@
echo "%0 <HOST> <PORT> <DBNAME> <DBTEMPLATE> <DBUSER>"
echo.
echo e.g.
-echo %0 localhost 5432 mapbender template0 postgres
+echo %0 localhost 5432 mapbender template_postgis postgres
echo.
echo ==============================================================================
@@ -56,7 +56,8 @@
echo.
echo.
-set /p DBTEMPLATE="database template to use (just hit return for default 'template0'):"
+echo "The following database template should be postgis-enabled!"
+set /p DBTEMPLATE="database template to use (just hit return for default 'template_postgis'):"
echo.
echo.
@@ -67,7 +68,7 @@
rem echo.
echo Database Password will be asked many times during install, unless pgpass.conf is used...
-IF %DBTEMPLATE%x==x set DBTEMPLATE=template0
+IF %DBTEMPLATE%x==x set DBTEMPLATE=template_postgis
IF %DBHOST%x==x set DBHOST=localhost
IF %DBPORT%x==x set DBPORT=5432
goto CHOICES
Modified: trunk/mapbender/resources/db/install.sh
===================================================================
--- trunk/mapbender/resources/db/install.sh 2012-07-02 13:06:44 UTC (rev 8399)
+++ trunk/mapbender/resources/db/install.sh 2012-07-02 13:07:02 UTC (rev 8400)
@@ -63,10 +63,10 @@
#ask for database template
echo ""
- echo "database template to use (Default: template0)?"
+ echo "database template to use (Default: template_postgis)?"
echo "the template should be postgis-enabled!"
read DBTEMPLATE
- : ${DBTEMPLATE:="template0"}
+ : ${DBTEMPLATE:="template_postgis"}
echo ""
echo "database user?"
More information about the Mapbender_commits
mailing list