X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-useradd;h=494c348091c533c2105986201612e3734c4e11a7;hp=e0c30e973b9b833078e04b36c2561b7507ada3bb;hb=a6fb69805c3999a85c064a96c93417bb1c284c5c;hpb=efc48e4f01ce7f402a4c793727bf776bcf083c05 diff --git a/ud-useradd b/ud-useradd index e0c30e9..494c348 100755 --- a/ud-useradd +++ b/ud-useradd @@ -19,7 +19,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -import string, re, time, ldap, getopt, sys, os, pwd; +import re, time, ldap, getopt, sys, os, pwd; from userdir_ldap import *; from userdir_gpg import *; @@ -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);