[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: works in bash, but not in postinst script



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@pi4tel.de>





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []