[OpenAFS] rpm removal

Tino Schwarze tino.schwarze@informatik.tu-chemnitz.de
Fri, 21 Dec 2001 10:50:56 +0100


On Thu, Dec 20, 2001 at 12:04:42AM -0500, Derek Atkins wrote:

> Michael Robokoff <mrobo@ahpcrc.org> writes:
> 
> > I am having trouble removing "openafs-1.2.2-rh7.1.1" from my 
> > system. I get the following error when I try "rpm -e
> > openafs-1.2.2-rh7.1.1"
> > 
> > error: execution of %preun scriptlet from openafs-1.2.2-rh7.1.1 failed,
> > exit status 1

> Well, this is what the %preun script says.  I have no idea where
> or how it's failing...
> 
> -derek
> 
> %preun
> if [ $1 = 0 ] ; then
>         /etc/rc.d/init.d/afs stop
>         chkconfig --del afs
>         [ -d /afs ] && rmdir /afs
> fi
Maybe, [ -d /afs ] returned 1, therefore the whole script exits with 1.
adding "exit 0" at the end might help.

Bye, Tino.

-- 
             * LINUX - Where do you want to be tomorrow? *
                  http://www.tu-chemnitz.de/linux/tag/