nextcloudpi
nextcloudpi copied to clipboard
Cannot update to RC versions
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...
Spelling might differ. Check their github releases. Might include 25.0.2RC2 or some other variation
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.
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
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?
@its0nlyfun That's a separate issue and should be fixed with 1.53.1 :)