Search the web
Sign In
New User? Sign Up
rpm-list · Redhat RPM List
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Re: works in bash, but not in postinst script   Message List  
Reply | Forward Message #12955 of 26827 |
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



Tue Feb 20, 2001 3:02 pm

sat@...
Send Email Send Email

Forward
Message #12955 of 26827 |
Expand Messages Author Sort by Date

... Maybe a trigger script is the solution. It's executed only if MySQL is installed. -- Stefan Tichy <sat@...> ...
Stefan Andreas Tichy
sat@...
Send Email
Feb 20, 2001
5:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help