* ud-generate: Export groups even if nobody has that group as a
supplementary group, as long as there are users that have it as a primary
group.
+ * ud-useradd: If we do not have a template for a specific group, use the
+ general purpose template file (welcome-message).
- -- Peter Palfrader <weasel@debian.org> Sat, 09 Jan 2010 00:15:34 +0100
+ -- Peter Palfrader <weasel@debian.org> Sat, 09 Jan 2010 00:16:26 +0100
userdir-ldap (0.3.75) unstable; urgency=low
# Send the Welcome message
print "Sending Welcome Email"
-Reply = TemplateSubst(Subst,open(TemplatesDir + "/welcome-message-%d" % int(gidNumber), "r").read())
+templatepath = TemplatesDir + "/welcome-message-%d" % int(gidNumber)
+if not os.path.exists(templatepath):
+ templatepath = TemplatesDir + "/welcome-message"
+Reply = TemplateSubst(Subst,open(templatepath, "r").read())
Child = os.popen("/usr/sbin/sendmail -t","w");
#Child = os.popen("cat","w");
Child.write(Reply);