%addusertogroup macro
Andrzej Krzysztofowicz
ankry at green.mif.pg.gda.pl
Mon Mar 28 19:49:16 CEST 2005
=?iso-8859-2?Q?Pawe=B3_=AFurowski?= wrote:
>
> Dnia 28-03-2005, pon o godzinie 19:19 +0300, Elan Ruusamäe napisał(a):
> > is it possible that the macro returns true or false in case the group was
> > added or not.
> >
> > this way i could test do i need to restart some service or not, depending was
> > the group membership modified of daemon's UID or not.
> >
> > # Usage:
> > # %addusertogroup myuser agroup
> >
>
> macro just substitutes some text by other. if /usr/lib/rpm/user_group.sh
> return true or false, you will be able to check this
But carefully check where the macro / script is used.
Some scripts (esp. %post, %preun) almost never should fail.
--
=======================================================================
Andrzej M. Krzysztofowicz ankry at mif.pg.gda.pl
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
More information about the pld-devel-en
mailing list