Am Freitag, 22. August 2003 00:16 schrieb Buchan Milne:
> On Thu, 21 Aug 2003, Steffen Barszus wrote:
> > Hi !
> >
> > I want to add a user vdr in postinstall of vdr-package. Now I'm a
> > bit stuck.
> >
> > - do we have a group video per default  (don't want to reinstall
> > beta 1 to check this ?
>
> I don't think so.

Ok 

>
> > - which home shoud the user get (vdr should running as user vdr)
>
> Somewhere not usually mounted NFS, ie not on /home or /usr, which
> basically leaves /var. If you have some directory on /var, use that
> (as openldap, squid, amanda, etc do).

Ah ok. Thanks. 

> > - can I add vdr to group video at the same time ?
>
> Yes. Something like:
> %pre
> %_pre_useradd vdr /var/lib/vdr
> %_pre_groupadd video vdr

Thanks a lot. 

> It seems there is no point in removing them in %postun, since the
> scripts don't do anything (at least on 9.1).
>
> > Hope the questions aren't to dumb. I'm a bit tired and may not see
> > things right before my eyes ;)
>
> rpm --eval %_pre_groupadd
> should show some interesting things.

I know I should have taken some sleep before asking here. Yep it shows 
all I need. 

> > BTW: Wouldn't it be good to have a rpm-macro reference ore the like
> > ? Could something like this be generated from existing macros ?
>
> Yes, should go in RPM-HOWTO on the Wiki, and we need to get docs from
> a Wiki into installable format (ie into scrollkeeper or similar) for
> offline reference.

Looking forward to see something like this :) 

Steffen

Reply via email to