Bug#979466: dh-sysuser: Create users in preinst instead of postinst

2023-09-25 Thread Christopher Odenbach
Hi, Well, you can write your code after the #DEBHELPER# token.. but I guess this doesn't work for your use case? Exactly. The use case is: - create a system user - chown a directory (e.g. for logs) - start the service The DEBHELPER token expands into too many tasks including starting the

Bug#979466: dh-sysuser: Create users in preinst instead of postinst

2023-09-22 Thread Lorenzo
Hi Christopher, On Thu, 21 Sep 2023 16:19:25 +0200 Christopher Odenbach wrote: > > Hi, > > I just stumbled across the same problem: Creating a package which > creates a system user and then gives this user ownership of a > directory. > Currently this is not possible as the user is created

Bug#979466: dh-sysuser: Create users in preinst instead of postinst

2023-09-21 Thread Christopher Odenbach
Hi, I just stumbled across the same problem: Creating a package which creates a system user and then gives this user ownership of a directory. Currently this is not possible as the user is created in the postinst script at the very last point. The logical approach would be: - create the