X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=ud-useradd;h=c183dca36247f2e474d94c3a39d6393ab14e2065;hb=5a150617472b541f4ff84e9bd55d702afe60ca39;hp=2ff63a33b49c460b1150bbc972e64295af0c6cd7;hpb=15a4da25cda1e33ccc1d951dc21f24380c6a2239;p=mirror%2Fuserdir-ldap.git diff --git a/ud-useradd b/ud-useradd index 2ff63a3..c183dca 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);