X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-useradd;fp=ud-useradd;h=627cc1455ca2404f25d8090a3d69c4f632982d22;hp=25fd604b5a6b739a97febab73d67715091210a6d;hb=46be797703adf5f2ad080b053ab24511cde688e7;hpb=6a3d7094e907be09117178131d8b5a4f6980eef0 diff --git a/ud-useradd b/ud-useradd index 25fd604..627cc14 100755 --- a/ud-useradd +++ b/ud-useradd @@ -326,7 +326,7 @@ if Update == 1 and ForceMail == 0: # Send the Welcome message print "Sending Welcome Email" -Reply = TemplateSubst(Subst,open(TemplatesDir + "/welcome-message-%d" % gidNumber, "r").read()) +Reply = TemplateSubst(Subst,open(TemplatesDir + "/welcome-message-%d" % int(gidNumber), "r").read()) Child = os.popen("/usr/sbin/sendmail -t","w"); #Child = os.popen("cat","w"); Child.write(Reply);