YunoHost-Apps / hubzilla_ynh

Hubzilla Hub package for YunoHost
https://zotlabs.org/page/hubzilla/hubzilla-project
GNU General Public License v3.0
14 stars 9 forks source link

Upgrade is broken #159

Closed anmol26s closed 7 months ago

anmol26s commented 10 months ago

Upgrade is failing

Solution

PR Status

anmol26s commented 10 months ago

By the power of systemd, I invoke The Great App CI to test this Pull Request!

yunohost-bot commented 10 months ago

Alrighty! Test Badge

orhtej2 commented 10 months ago

Isn't this the right/common way of doing this check? https://github.com/YunoHost-Apps/element_ynh/blob/633cb1d6accbd7fda57d599e7d8ef4c8297723b1/scripts/upgrade#L24

anmol26s commented 10 months ago

@orhtej2 Maybe yes for the Element app, but how do we know that here if reandom_string is set inside settings? We need to fetch it to check it, otherwise there is no point in having this check. In Element it is fetched from the manifest. Here, if we keep it like this, it will always go inside the block because the radom_string is not declared inside the environment. And every time it will set a new random_string, which I think is not what we want. Do you have a better way?

orhtej2 commented 10 months ago

You're loading random_string from app settings and these per packaging v2 are now automatically loaded. What pointed stanza in Element script does it is checks if the variable exists, because if it does then the setting is already set.

anmol26s commented 10 months ago

!testme

yunohost-bot commented 10 months ago

May the CI gods be with you! Test Badge

ericgaspar commented 7 months ago

closing in favor of #160