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

Re: bailing out of a build in install/uninstall script



rpjday <rpjday@mindspring.com> writes:

>   according to "maximum rpm", there is a way in, say, a %pre or %preun
> script in which you can decide to not proceed with the install or
> removal, but it doesn't mention what that is.
> 
>   is it as simple as doing an "exit 0" in the middle of that
> script?

If the script fails, the RPM will not be installed.  Execution failure
in Unix is indicated by a non-zero exit code.  So "exit 1" would do
it.






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