vserver and scripts provided by rpm package

Jan Rekorajski baggins at sith.mimuw.edu.pl
Thu Jul 28 23:26:20 CEST 2005


On Thu, 21 Jul 2005, Elan Ruusamäe wrote:

> On Thursday 21 July 2005 20:03, Patrys :: Patryk Zawadzki wrote:
> > Dnia 21-07-2005, czw o godzinie 18:46 +0300, Elan Ruusamäe napisał(a):
> > > so... mysql (or anything that uses %userremove/%groupremove) must depend
> > > on rpm package?
> > >
> > > what about embedding the scripts into %scriptlets, than using the
> > > external shell script? same goes for %banner i guess.
> > >
> > > then can put dependencies on actual programs being used, be it /bin/id
> > > or /usr/sbin/userdel.
> > >
> > > # vpoldek mysql-slave -- -e mysql
> > > vpoldek: operating on vserver mysql-slave
> > > There are 1 package to remove:
> > > R mysql-4.1.12-2.5
> > > Proceed? [y/N]
> > > Running vrpm-preload --erase --root /vservers/mysql-slave...
> > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found
> > > /var/tmp/rpm-tmp.33133[6]: /usr/lib/rpm/user_group.sh: not found
> > > error: %postun(mysql-4.1.12-2.5.i686) scriptlet failed, exit status 127
> > > vpoldek failed on vserver 'mysql-slave' with errorcode 1
> >
> > Then doing fixes in the scripts would require all the packages to be
> > rebuilt. Now you only have to rebuild the rpm package.
> i heard of idea of putting these scripts to 'setup' package.
> 
> but then should the setup package have userdel/groupdel dependencies?
> 
> how would it be solved then for vserver?

What about rpm-scripts package or something similiar?

Janek
-- 
Jan Rękorajski            |  ALL SUSPECTS ARE GUILTY. PERIOD!
baggins<at>mimuw.edu.pl   |  OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY?
BOFH, MANIAC              |                   -- TROOPS by Kevin Rubio



More information about the pld-devel-en mailing list