nextcloudpi icon indicating copy to clipboard operation
nextcloudpi copied to clipboard

Cannot update to RC versions

Open darguez opened this issue 2 years ago • 5 comments

When I try to update nextcloud to a RC version, there is an error due to the version does not have only numbers:

25.0.1 is fine 25.0.2rc2 shows the error:

Current Nextcloud version 25.0.1.1
Available Nextcloud version 25.0.2rc2
/usr/local/etc/library.sh: line 429: [: 2rc2: integer expression expected
/usr/local/etc/library.sh: line 429: [: 2rc2: integer expression expected
Download Nextcloud 25.0.2rc2...
Error downloading
Clean up...

darguez avatar Dec 03 '22 12:12 darguez

Spelling might differ. Check their github releases. Might include 25.0.2RC2 or some other variation

sunjam avatar Dec 06 '22 18:12 sunjam

I don't think it is a misspelling issue. Look at the log, an integer is expected in the last part of the version because a numeric comparison is made to determine if the version is newer than current version.

darguez avatar Dec 06 '22 23:12 darguez

Correct, the library.sh file doesn't work with rc versions, it isn't written for that unfortunately.

It needs some work in general too, considering improving or even rewriting it when making ncp more optimized for Docker, which it currently isn't

ZendaiOwl avatar Jan 15 '23 23:01 ZendaiOwl

I currently have this error message, too. I'm not really sure if the system is updating properly or not after that.

[ nc-update ] (Mon Jan 29 07:46:27 GMT 2024) Downloading updates Performing updates /usr/local/etc/library.sh: line 494: [: 0sh: integer expression expected /usr/local/etc/library.sh: line 494: [: 0sh: integer expression expected /usr/local/etc/library.sh: line 494: [: 0sh: integer expression expected Nextcloud is already latest version

edit: Could it be, because there is a release candidate again as the latest version?

ghost avatar Jan 29 '24 07:01 ghost

@its0nlyfun That's a separate issue and should be fixed with 1.53.1 :)

theCalcaholic avatar Feb 01 '24 20:02 theCalcaholic