Bug#657146:

PICCA Frédéric-Emmanuel frederic-emmanuel.picca at synchrotron-soleil.fr
Thu Jan 26 18:13:36 UTC 2012


Hello, my package provide in fact the creation of a user called tango (system) used by a few other packages (tango-db, tango-starter, tango-accesscontrol, daemons)
I inspired myself of mysql-server to create the tango users.

I decided to create the home of the tango user under /var/lib/tango

with preinst

DATADIR=/var/lib/tango

        adduser \
          --system \
          --ingroup tango \
          --home $DATADIR \
          --gecos "Tango Server" \
          --shell /bin/false \
          tango  >/dev/null

so in your opinion which snipset should I add to the postrm

if [ "$1" = "purge" ]; then
  rm -rf /var/lib/tango
fi

???

or using deluser ?

thanks for your help

Frederic





More information about the debian-science-maintainers mailing list