On Wed, May 07, 2025 at 08:30:00PM +0000, Martin wrote: > On 2025-05-07 16:29, Pirate Praveen wrote: > > On Tue, 06 May 2025 21:54:57 +0000 Martin <deba...@debian.org> wrote: > >> 3. But even then the chown in postinst happens *before* the group and > >> user are created. No idea how to fix that. > >> > > May be we can explicitly call systemctl restart systemd-sysusers.service > > > > before we run chmod ? > > That, or just move the calls to chown below the #DEBHELPER# line? > (Of course, guarded with an if [ "$1" == "configure" ]; ...)
Is there a reason why the existing code could not just be moved from the preinst to "configure" in postinst, without any actual change? This would be the simple fix. cu Adrian