On Thursday 11 August 2011 14:29:13 Yamaban wrote:
On Thu, 11 Aug 2011 13:40, Marcus Meissner
wrote: On Thu, Aug 11, 2011 at 01:15:18PM +0200, Sascha Peilicke wrote:
Dear magic pony,
please create a new user 'jenkins' and group 'jenkins' for package 'jenkins'
Read the documentation on how to use useradd and groupadd in %post?
Not to out myself as dumb (I'm uninformed, not dumb), but would it be better to do the useradd and groupadd in %preinst ? otherwise, just how would the filesystem / kernel determinate the needed numeric values for uid/gid during the %install of the files / directories?
I'm asking here to clear this up before something inherently false is propagated as "correct" way without any thought on the consequences. Uhm, I meant %pre, not %post. Thanks for the correction. -- Mit freundlichen Grüßen, Sascha Peilicke