I am running Nextcloud 24.0.12 and want to upgrade to the latest version.
I installed Nextcloud using a script on a server dedicated to it, and in the past, I upgraded using the script sudo bash /var/scripts/update.sh
However, when I run it now, it won’t update, because it is fetching the version 26 and it cannot skip a version during upgrade.
Is there a way to force it to upgrade to 25, or should I do the upgrade manually (if so, can anyone help me with the link)
Nextcloud version : 24.0.12
Operating system and version : 22.04
Apache or nginx version : Apache
PHP version : 8.12
The issue you are facing:
Cannot update to version 25 using script.sh
You should provide all information, not only the name of a script, it could contain everything possible.
My advice, open the script in an editor and look what it exactly does, you should of course be able to speak Bash freely, which is not so dificult and should be a goal for everybody begining to run a linux server. If you don’t, you should ask the person who wrote the script a.k. the maintainer.
Maybe someone can explain where in the code the Nextcloud zip file is downloaded. Does the regular expression exclude the “.asc” to use direct “.zip”? Sorry i am not an expert in Chomsky hierarchy Type-3.
The script takes decisions from you and checks what you should (but don’t have to) do manually.
But with a backup you are always on the safe side. A manual upgrade is (especially in a case like yours) easier to start.
You can first do a manual upgrade and then run the web script (which should then work).