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

Re: creating links



On Fri, Apr 06, 2007 at 10:03:26AM -0700, Joshua M. Miller wrote:

> What would be the best way to specify creation of symlinks after RPM 
> installation in the SPEC file?
> 
> I have tried during the %post portion and that fails with the following 
> error:
> 
>    error: %post(libldap-2.3.34-centos3) scriptlet failed, exit status 1

You can add symlinks in %post (whether that's a good idea is another
story), but be sure that all commands in %post *always* succeed (i.e.
exit with return code 0), otherwise the scriptlet will fail.

So find the reason why the command exits with a non-zero return code.

B.t.w., if a command *really* may fail, maybe even with error messages,
you can always consider to use a construction like

	command > /dev/null 2>&1 || :

making this statement always succeed.

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


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