From 528f5ccfe4f71cf421ded872cc0580b2435ceb13 Mon Sep 17 00:00:00 2001 From: Robert Harakaly Date: Tue, 7 Dec 2004 18:42:40 +0000 Subject: [PATCH] Fixes, added dirlist, etc ... --- org.glite.deployment.lb/config/scripts/glite-lb-config.py | 7 ++++++- org.glite.deployment.lb/config/templates/glite-lb.cfg.xml | 14 ++++++++------ 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/org.glite.deployment.lb/config/scripts/glite-lb-config.py b/org.glite.deployment.lb/config/scripts/glite-lb-config.py index 15995d0..82fb378 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -114,7 +114,12 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ return 0 def configure(self): - + # Create all directories needed + if params.has_key('dirlist'): + dirlist = string.split(params['dirlist'],',') + for d in dirlist: + gLib.check_dir(d,0777) + # Create the GLITE_USER if it doesn't exists print "Creating/Verifying the GLITE_USER account %s" % params['GLITE_USER'] glib.add_user(params['GLITE_USER'],params['GLITE_USER']) diff --git a/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml b/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml index 5146ca6..8c3771e 100644 --- a/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml +++ b/org.glite.deployment.lb/config/templates/glite-lb.cfg.xml @@ -17,12 +17,14 @@ + description="The mySQL database name to create for storing LB data + Now it must be set to the default value" + value="lbserver20"/> + description="The username to be used to access the local mySQL server + Now it must be set to the default value" + value="lbserver"/> @@ -34,11 +36,11 @@ + value="gproduct"/> - + \ No newline at end of file -- 1.8.2.3