[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Mailman pre-depend

In order to ensure that the list user exists in the system password
tables, I need to check that, using the functions in libnss, so
grepping /etc/{passwd,group} doesn't work.

So, I use the following:

if ! python -c 'import grp; print pwd.getgrnam("list")' > /dev/null 2>&1 ; then

for checking that the group exists.  I have a similar line for
checking that the list user exists.  (I am not really sure why those
are in the preinst instead of the postinst, but I guess they are for
historical reasons and it has a function).

This is well, but I need to have it discussed on -devel, according to
policy, before I add that Pre-Depend.  So, unless anybody tells me
that it is wrong and I should do it in some other way, I will add that


Tollef Fog Heen
Axiom #1: You Can't Win

Reply to: