X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fuserdir-ldap.git;a=blobdiff_plain;f=ud-useradd;h=d6114ba051b27d34dca12b32424f0f7ed24a9fe3;hp=d14edee2e4b7cb6818f292717a9e6a67a97f91ff;hb=823ee0d7c48109648bd0f54769bb551ed1aede29;hpb=18985887579c86d93d06f6e574d9f19dc99989b8 diff --git a/ud-useradd b/ud-useradd index d14edee..d6114ba 100755 --- a/ud-useradd +++ b/ud-useradd @@ -390,7 +390,7 @@ if Update == 1 and ForceMail == 0: # Send the Welcome message print "Sending Welcome Email" -templatepath = TemplatesDir + "/welcome-message-%d" % int(gidNumber) +templatepath = TemplatesDir + "/welcome-message-%s" % supplementaryGid if not os.path.exists(templatepath): templatepath = TemplatesDir + "/welcome-message" Reply = TemplateSubst(Subst,open(templatepath, "r").read())