take db user and name from configuration a build DBCS string from it
authorMiloš Mulač <mulac@civ.zcu.cz>
Wed, 22 Mar 2006 11:20:19 +0000 (11:20 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Wed, 22 Mar 2006 11:20:19 +0000 (11:20 +0000)
org.glite.deployment.jpis/config/scripts/glite-jpis-config.py
org.glite.deployment.jpis/config/templates/glite-jpis.cfg.xml
org.glite.deployment.jpis/project/version.properties

index 7c347aa..eb75155 100755 (executable)
@@ -285,8 +285,6 @@ def loadDefaults(params):
 
     params['GLITE_LOCATION'] = "/opt/glite"
     params['mysql.root.password'] = ""
-    params['jpis.database.name'] = "jpis"
-    params['jpis.database.username'] = "jpis"
     params['mysql.max_allowed_packet'] = "17"
     params['jpis.serviceName'] = 'JP IS Server service at %s' % glib.fq_hostname
     params['jpis.serviceType'] = 'org.glite.jp.index'
@@ -334,7 +332,7 @@ def set_env():
     glib.export('GLITE_JPIS_DEBUG',params['jpis.debug'])    
     glib.export('GLITE_JPIS_QT',params['jpis.qt'])    
     glib.export('GLITE_JPIS_AUTH',params['jpis.auth'])    
-    glib.export('GLITE_JPIS_DB',params['jpis.db'])    
+    glib.export('GLITE_JPIS_DB',"%s/@localhost:%s" % (params['jpis.database.username'], params['jpis.database.name']) )
     glib.export('GLITE_JPIS_PORT',params['jpis.port'])    
     glib.export('GLITE_JPIS_PIDFILE',params['jpis.pid.file'])    
     glib.export('GLITE_JPIS_LOGFILE',params['jpis.log.file'])
index ca3e6b6..6eb3f38 100644 (file)
                        description="setting to '-n' switches off authorization"
                        value=""/>
 
-               <jpis.db
-                       description="non-default JP IS DB contact string"
-                       value=""/>
+               <jpis.database.name
+                       description="JP IS DB name"
+                       value="jpis"/>
+
+               <jpis.database.username
+                       description="JP IS DB user"
+                       value="jpis"/>
 
                <jpis.port
                        description="non-default JP IS port"
index b6ff6e2..809be8c 100644 (file)
@@ -1,4 +1,4 @@
 
 module.version = 2.2.0
-module.age = 1
-                               
\ No newline at end of file
+module.age = 2
+