YunoHost-Apps / friendica_ynh

Friendica package for YunoHost
http://friendi.ca/
Other
11 stars 13 forks source link

Update to 2020.09 #32

Closed SpencerDub closed 3 years ago

SpencerDub commented 4 years ago

The app is currently v2020.03.

Friendica v2020.09 has been released, so the install script needs to be updated appropriately.

Apparently, 2020.07 has an issue with PHP 7.0. Newer versions of PHP are apparently supported by Debian Buster, which YunoHost 4.0 now runs on.

hotsymbol commented 4 years ago

Update

SpencerDub commented 4 years ago

Alright, I might be able to dig into this soon if someone can give me pointers.

The previous update I made to this script, following Tobias' guide, only involved changing the sources and checksums of installation files. Will that suffice for this, or will more extensive changes be necessary? If more extensive changes are needed, what are they?

@anmol26s, do you know what it would take to update this package to Friendica v2020.07?

blackfireburn commented 4 years ago

I tried to fork it and replaced the php 7.0 values with the 7.3 but while it installs and the packages are correct, it won't let me log in. I haven't had time to did into it unfortunately.

SpencerDub commented 4 years ago

There's a new upstream security release, v2020.07-1 that makes this upgrade even more pressing.

Additionally, I expect that Friendica 2020.09 will be released before the month is out, since it's currently in the release candidate phase.

utzer commented 4 years ago

For Friendica we now have tar archive available for docker installations, but these probably could be used for yunohost too. The files are hosted here: https://files.friendi.ca/ This is maintained by @tobiasd

Also I would like to add that an update is really suggested due to some security issue in 03.2020 and actually in 07.2020 before 07.2020-1, which allows access to session information and hence to admin sessions and then to all accessible information in the backend as far as I understood.

Maybe for the future Friendica for yunohost can fetch the github stable branch of Friendica regularly or trigger able by the YunoHost admin?

SpencerDub commented 4 years ago

Friendica v2020.09 has now been released.

tobiasd commented 4 years ago

The idea with the archive files is that, there is a VERSION file in the stable branch of Friendica (e.g. https://git.friendi.ca/friendica/friendica/src/branch/stable/VERSION, you can use the file on github as well) and for the version mentioned in that file, there will be 2 tar archives on files.friendi.ca

in addition, there are *.sum256 files that contain the SHA256 checksum for the archive files.

So ideally you just need to adjust the app.src and addons.src with the new fixed file location and exchange the version number after each release.

SpencerDub commented 4 years ago

I've forked this repo and made changes to the sources and checksums so it installs v2020.09. I've tested it as an upgrade to an existing installation and it seems to have worked without a hitch. I have not tested installing from scratch.

In the future, I'm happy to update checksums and file sources like this--that's work that I'm easily able to do. However, if anything ever changes in the installation/upgrade process beyond those simple tasks, I do not currently have the know-how to either recognize or address that. For that reason, I'm fine being a sort of "semi-maintainer" for this repo, but I don't want to be relied upon as the sole maintainer, because I don't have the independent knowledge or skill to be a good steward.

Torenga commented 3 years ago

I've tested it as an upgrade to an existing installation and it seems to have worked without a hitch.

How do you upgrade?

tiotrom commented 3 years ago

So this Friendica addon has no maintainer anymore?

SpencerDub commented 3 years ago

@Torenga - From the command line. sudo yunohost app upgrade friendica -u [URL to Git archive] directed YunoHost to upgrade the app from the specified URL.

@tiotrom - I don't know who's maintaining friendica_ynh here. I will likely continue making changes to my own fork, which will work until an upgrade requires anything more complicated than changing checksums and URLs. I'm not a knowledgeable dev, though, so I can't encourage anyone to rely on my fork.

anmol26s commented 3 years ago

I will do some tests and push the PR on weekend.

tiotrom commented 3 years ago

I love friendica and we are testing yunohost which is 100% amazing! So if Friendica keeps on being maintained and updated then we could create more instances of it, quicker, via yunohost. I wish I knew how to help. Thank you to all so much for your work!

tiotrom commented 3 years ago

We would be so happy to provide yet another friendica node but this is 1 year old and may not work well. So if you can update it and maintain it, would be so amazing and I could not thank you enough. :)