=?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 [EMAIL PROTECTED] phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Gdansk University of Technology _______________________________________________ pld-devel-en mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-devel-en
