On 2012-01-26 19:13, PICCA Frédéric-Emmanuel wrote: > 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
I would * ship the empty directory /var/lib/tango in the package * create the user in postint instead of preinst * chown in postinst as neccessary > so in your opinion which snipset should I add to the postrm > > if [ "$1" = "purge" ]; then > rm -rf /var/lib/tango > fi I don't know what will be created in /var/lib/tango ... I would only remove files where I know the names/pattern ... and leave the removal of /var/lib/tango/ to dpkg (which will fail if there are any files of unaccounted origin - but that could be intentional). > or using deluser ? Looks like removing system users is going to be discouraged. Andreas -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org