mirror of
https://github.com/nextcloud/vm.git
synced 2025-10-26 11:27:32 +00:00
make sure only versions below 15 reverse the order
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
parent
9e7d9e60ac
commit
554f4d3795
@ -705,7 +705,12 @@ then
|
||||
elif [ -f /tmp/nextmajor.version ]
|
||||
then
|
||||
NCBAD=$(cat /tmp/nextmajor.version)
|
||||
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep $NCNEXT | head -1)
|
||||
if [ "$NCNEXT" -lt "15" ]
|
||||
then
|
||||
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep $NCNEXT | head -1)
|
||||
else
|
||||
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | grep $NCNEXT | tail -1)
|
||||
fi
|
||||
if [ -z "$NCVERSION" ]
|
||||
then
|
||||
msg_box "The version that you are trying to upgrade to doesn't exist."
|
||||
|
||||
Loading…
Reference in New Issue
Block a user