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.

> - 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).

> - 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

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.

> 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.

Regards,
Buchan

-- 
|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7
*****************************************************************
Please click on http://www.cae.co.za/disclaimer.htm to read our
e-mail disclaimer or send an e-mail to [EMAIL PROTECTED] for a copy.
*****************************************************************

Reply via email to