vserver and scripts provided by rpm package
Patrys :: Patryk Zawadzki
patrys at pld-linux.org
Thu Jul 21 19:03:55 CEST 2005
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.
--
Patrys :: Patryk Zawadzki <patrys at pld-linux.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /mailman/pipermail/pld-devel-en/attachments/20050721/ae830e67/attachment-0002.bin
More information about the pld-devel-en
mailing list