From 75706317b1c3b21287decbe28eeb5f44975085c9 Mon Sep 17 00:00:00 2001 From: Robert Harakaly Date: Tue, 7 Dec 2004 16:46:21 +0000 Subject: [PATCH] changed os.environ['GLITE_USER'] to the params['GLITE_USER'] --- org.glite.deployment.lb/config/scripts/glite-lb-config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 c2ac765..15995d0 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -116,9 +116,9 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ def configure(self): # Create the GLITE_USER if it doesn't exists - print "Creating/Verifying the GLITE_USER account %s" % os.environ['GLITE_USER'] - glib.add_user(os.environ['GLITE_USER'],os.environ['GLITE_USER']) - (uid,gid) = glib.get_user_info(os.environ['GLITE_USER']) + print "Creating/Verifying the GLITE_USER account %s" % params['GLITE_USER'] + glib.add_user(params['GLITE_USER'],params['GLITE_USER']) + (uid,gid) = glib.get_user_info(params['GLITE_USER']) glib.check_dir(os.environ['GLITE_LOCATION_VAR'],0755, uid, gid) # Create the MySQL database @@ -141,7 +141,7 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ file.close() os.system('/usr/bin/mysql < /tmp/mysql_ct') os.system('/bin/rm /tmp/mysql_ct') - if not os.path.exist('/tmp/mysql.sock'): + if not os.path.exists('/tmp/mysql.sock'): os.link('/var/lib/mysql/mysql.sock', '/tmp/mysql.sock') self.mysql.stop() -- 1.8.2.3