Re: creating links

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

 



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@xxxxxx>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux