From: Robert Harakaly Date: Tue, 7 Dec 2004 16:10:18 +0000 (+0000) Subject: Creation of the account for $GLITE_USER X-Git-Tag: glite-wms-utils-exception_R_1_0_0~47 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=64ecc1270f253e809dc6c415bd88c29b031dd2e4;p=jra1mw.git Creation of the account for $GLITE_USER --- 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 e269fd8..c2ac765 100644 --- a/org.glite.deployment.lb/config/scripts/glite-lb-config.py +++ b/org.glite.deployment.lb/config/scripts/glite-lb-config.py @@ -117,9 +117,7 @@ python %s-config [OPTION...]""" % (self.name, os.environ['GLITE_LOCATION'], \ # Create the GLITE_USER if it doesn't exists print "Creating/Verifying the GLITE_USER account %s" % os.environ['GLITE_USER'] - (uid,gid) = glib.get_user_info(os.environ['GLITE_USER']) - if uid == -1: - glib.add_user(os.environ['GLITE_USER'],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']) glib.check_dir(os.environ['GLITE_LOCATION_VAR'],0755, uid, gid) @@ -143,7 +141,8 @@ 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') - os.link('/var/lib/mysql/mysql.sock', '/tmp/mysql.sock') + if not os.path.exist('/tmp/mysql.sock'): + os.link('/var/lib/mysql/mysql.sock', '/tmp/mysql.sock') self.mysql.stop() return 0