X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-useradd;h=8cc425b6f8521225588ffa964ed8c5186ac07e06;hp=e0c30e973b9b833078e04b36c2561b7507ada3bb;hb=3ec1386cd62200a1d86fc72168c2aa1fe305bdd8;hpb=efc48e4f01ce7f402a4c793727bf776bcf083c05 diff --git a/ud-useradd b/ud-useradd index e0c30e9..8cc425b 100755 --- a/ud-useradd +++ b/ud-useradd @@ -306,7 +306,7 @@ if Update == 1 and ForceMail == 0: # Send the Welcome message print "Sending Welcome Email" -Reply = TemplateSubst(Subst,open(TemplatesDir+"/welcome-message-"+gidNumber,"r").read()); +Reply = TemplateSubst(Subst,open(TemplatesDir + "/welcome-message-%d" % gidNumber, "r").read()) Child = os.popen("/usr/sbin/sendmail -t","w"); #Child = os.popen("cat","w"); Child.write(Reply);