On Fri, Feb 16, 2001 at 02:34:17PM -0500, Jeff Johnson wrote:
> On Fri, Feb 16, 2001 at 02:10:29PM -0500, Jesse Stockall wrote:
> > rpm -q MySQL &> /dev/null && MYSQL=YES
> > if [ "$MYSQL" = "YES" ]; then
> > echo "MYSQL installed"
> You can't run rpm in a %post scriptlet, as the database is exclusively
> locked, causing rpm to fail, causing the misleading "MySQL not installed"
> message.
>
> Don't use rpm to do the test, do it some other way.
Maybe a trigger script is the solution. It's executed only if MySQL
is installed.
--
Stefan Tichy <sat@...>
_______________________________________________
Rpm-list mailing list
Rpm-list@...
https://listman.redhat.com/mailman/listinfo/rpm-list