From: Robert Harakaly Date: Fri, 19 Nov 2004 13:29:41 +0000 (+0000) Subject: Fixes to conform to the new installer library X-Git-Tag: glite-lb-client-interface_R_0_3_0~51 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=feddf9272e05907c12f3f7265468b241a13db4ce;p=jra1mw.git Fixes to conform to the new installer library --- 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)