NEWS.Debian like / changelog warning before applying (breaking) upgrades

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.12
How are you able to access your server: The webadmin

Describe your issue

Yet another “breaking” upgrade (of PhpLDAPAdmin app) that fails because it is not upgradable… and I have to wait until the upgrade is attempted, to get a message stating that “Could not upgrade phpldapadmin: An error occurred inside the app upgrade script : --message=Since version 2.0.0, phpldapadmin need to be installed under its own domain. Before upgrading, change phpldapadmin URL: delete the path and switch to a new domain if needed.”

This should be announced upfront rendering the app non-upgradable, and it’s too bad there isn’t any changelog browsable before starting the app upgrades.

Debian attempts to solve this through a NEWS.Debian that comes along packages. Maybe such a feature could be present also for the YNH packaging part ?

I’ve see mentions of this dating back to really ancient times, but couldn’t find a proper feature request. Would that be possible ?

Thanks in advance.

P.S.: forcing apps to their own domain instead of subpath is a pain, but I guess that there are probably good technical reasons.

Share relevant logs or error messages

nothing more

This can already be done by adding a PRE_UPGRADE.md (or with a PRE_UPGRADE.d/{version}.md for a specific a version number, cf Adding documentation to your app | Yunohost Documentation)

That’s not something YunoHost necessarily has control over, some upstream developers just don’t implement the tweaks for the app to be installable on a subpath …

1 Like