[Mapbender-commits] r6526 - trunk/build/osgeolive

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Sat Jul 3 08:44:18 EDT 2010


Author: tbaschetti
Date: 2010-07-03 12:44:18 +0000 (Sat, 03 Jul 2010)
New Revision: 6526

Modified:
   trunk/build/osgeolive/install_mapbender.sh
Log:
bugfix sudo


Modified: trunk/build/osgeolive/install_mapbender.sh
===================================================================
--- trunk/build/osgeolive/install_mapbender.sh	2010-07-03 12:28:52 UTC (rev 6525)
+++ trunk/build/osgeolive/install_mapbender.sh	2010-07-03 12:44:18 UTC (rev 6526)
@@ -70,7 +70,7 @@
 # download and unzip sources...
 
 cd "$TMP_DIR"
-if [ ! -e "$INSTALLFILE".zip ] ; then 
+if [ ! -e mapbender_osgeo.zip ] ; then 
    wget -O mapbender_osgeo.zip --progress=dot:mega \
       "$INSTALLURL""$INSTALLFILE".zip
 else
@@ -89,7 +89,7 @@
 
 cd $INSTALL_DIR/mapbender/resources/db
 chmod +x install_2.6.sh 
-./install_2.6.sh localhost 5432 MAPBENDER_DATABASE_NAME MAPBENDER_DATABASE_TEMPLATE MAPBENDER_DATABASE_USER
+sudo -u $USER_NAME ./install_2.6.sh localhost 5432 $MAPBENDER_DATABASE_NAME $MAPBENDER_DATABASE_TEMPLATE $MAPBENDER_DATABASE_USER
 
 #Create apache2 configuration for mapbender
 echo "#Configure apache for mapbender " > /etc/apache2/conf.d/mapbender



More information about the Mapbender_commits mailing list