obiba / rock

R server with a REST API
GNU General Public License v3.0
3 stars 1 forks source link

Creation of /usr/share/rock link fails on upgrade #7

Closed bjornwiberguuse closed 3 years ago

bjornwiberguuse commented 3 years ago

On RPM upgrades (or downgrades) of rock (e.g. from rock-1.0.8-1 to rock-1.0.9-1), the creation of the /usr/share/rock symlink in the postinstall scriptlet of the RPM fails:

ln: target ‘/usr/share/rock’ is not a directory

This appears to be because multiple /usr/share/rock-* directories appear to exist simultaneously, before the upgrade (or downgrade) has been completed. This in turn causes Rock startup to fail.

I would suggest adding the actual symlink as a "file" in the RPM instead of handling it in the scriptlets, if possible.

ymarcon commented 3 years ago

Thanks for the report, please have a try with release 1.0.10.

bjornwiberguuse commented 3 years ago

Thank you, Yannick! Seems to be working fine!