From feddf9272e05907c12f3f7265468b241a13db4ce Mon Sep 17 00:00:00 2001 From: Robert Harakaly Date: Fri, 19 Nov 2004 13:29:41 +0000 Subject: [PATCH] Fixes to conform to the new installer library --- org.glite.deployment.lb/config/scripts/glite-lb-config.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 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 c5822eb..71109dc 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -23,7 +23,7 @@ import time sys.path.append(".") import mysql as MySQL -import gLiteInstallerLib as gLib +from gLiteInstallerLib import gLib as GLib global mysql @@ -65,11 +65,16 @@ class glite_lb: def init(self): return 0 + +# ---- Main program -- +# Get an instance of the library class +gLib = GLib() + params = {} gLib.loadConfiguration("../glite-lb.cfg.xml",params) gLib.print_params(params) os.environ['GLITE_LOCATION'] = params['glite.location'] -gLib.user_add(params['glite.user.name'],params['glite.group.name']) +gLib.add_user(params['glite.user.name'],params['glite.group.name']) gLib.check_dir_perms(params['glite.location']+"/var",0777) if params['glite.installer.checkcerts']: gLib.check_certs(params) -- 1.8.2.3