Seeing which version is the next version on nc-update-nextcloud Pt. 2

Hello nextcloudpi community.

I am attempting to get more clarity on what happens when you invoke nc-update-nextcloud with the paramater 0, which should update me to the latest ncp-supported version of nextcloud. But it is unclear what that is. This post is a follow up to pt 1 which is now locked. Let me explain.

Just today I ran nc-update to install the latest version of nextcloud pi: v1.55.4. I then went to Releases 路 nextcloud/nextcloudpi 路 GitHub to see what version of nextcloud this would be. It doesn鈥檛 have v1.55.4 yet, but for v1.55.3, it says

Nextcloud 30.0.1 (can be automatically updated to latest minor version)

I double checked my nextcloud admin panel, and it showed me that I am on 29.0.14. I looked at the nextcloud official releases page, and it shows me that the latest minor release is 29.0.16

At this point I have the question:

  1. If I update using nc-update-nextcloud, will it
    a. update me to the latest minor release supported by ncp? (And would this be 29.0.16?)
    b. OR would it update me to the next major version? Nextcloud 30?

and

  1. Is it normal for there to be a lag between an update to NextcloudPi being available via nc-update, and being posted on github?

Thanks!
TMG

It looks like in the file nextcloudpi/bin/ncp-update-nc.d/update-nc.sh at master 路 nextcloud/nextcloudpi 路 GitHub there is a part of the script that can detect the current version, the version the script will request, and the version that it will actually install:

echo "Current   Nextcloud version $CURRENT"
echo "Requested Nextcloud version $REQUESTED_VERSION"
echo "Selected  Nextcloud version $TARGET_VERSION"

Maybe there is a way to backup and then modify update-nc.sh so that there is a breakpoint after printing this information, so that the update is not completed, it just prints what it would do and then quits?

It should update to the latest minor version, if you are on the latest minor version it should update to the next major version, thdere the last minor version.

You may request a explicit version.

sudo ncp-update-nc 29.0.16

Please read the discussion on issues
Release v1.55.4 version #2048 (closed)

You may check (exp.)

pi@ncpi4:~$ sudo ncp-check-nc-version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  846k    0  846k    0     0  1012k      0 --:--:-- --:--:-- --:--:-- 1012k
Found update from 30.0.10 to 31.0.4. Already notified
pi@ncpi4:~$

I tried this and it didn鈥檛 seem to find anything:

root@nextcloudpi:~# ncp-check-nc-version
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  866k    0  866k    0     0  1715k      0 --:--:-- --:--:-- --:--:-- 1716k
root@nextcloudpi:~#

I will try updating later and see if it takes me to the latest minor release. EDIT: It did. I used ncp-config and selected nc-update-nextcloud.

Thank you for forwarding the discussion re: the 1.55.4 release.

Try giving it an explicit number to pick.

Another kind of check:

pi@ncpi4:~$ sudo ncc status
  • installed: true
  • version: 30.0.10.1
  • versionstring: 30.0.10
  • edition:
  • maintenance: false
  • needsDbUpgrade: false
  • productname: Nextcloud
  • extendedSupport: false
    pi@ncpi4:~$