Package: dh-sysuser
Version: 1.3.5
Severity: wishlist

Dear Maintainer,

I would like to use "dh-sysuser" in order to clean up my prerm/postinst
scripts.

But I am struggling to apply dh-sysuser in the context of the following
postinst script:
 
https://git.hack-hro.de/grouprise/grouprise/-/blob/master/debian/grouprise.postinst#L25

A few actions in that specific postinst script rely on the existence of
the user account (e.g. chown for directories).
Thus I would need to move the `#DEBHELPER#` marker to the top of the
postinst script.  But this would lead to related services being
restarted (via the other debhelper snippets) before the directory
permissions are configured.

Maybe it would be desirable to allow dh-sysuser to inject its snippet
into "preinst" instead of "postinst"?

Or maybe my postinst script is just not well designed?

Thank you for your time!

Cheers,
Lars

Reply via email to