add CURRENTMAJOR (#2503)
This commit is contained in:
Родитель
138dbbfd88
Коммит
bb2f6ee8ab
1
lib.sh
1
lib.sh
|
@ -133,6 +133,7 @@ nc_update() {
|
|||
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | tail -1)
|
||||
STABLEVERSION="nextcloud-$NCVERSION"
|
||||
NCMAJOR="${NCVERSION%%.*}"
|
||||
CURRENTMAJOR="${CURRENTVERSION%%.*}"
|
||||
NCBAD=$((NCMAJOR-2))
|
||||
NCNEXT="$((${CURRENTVERSION%%.*}+1))"
|
||||
}
|
||||
|
|
|
@ -562,7 +562,7 @@ bash $SCRIPTS/update.sh minor
|
|||
|
||||
# Check if new major is out, and inform on how to update
|
||||
nc_update
|
||||
if version_gt "$NCVERSION" "$CURRENTVERSION"
|
||||
if version_gt "$NCMAJOR" "$CURRENTMAJOR"
|
||||
then
|
||||
msg_box "We noticed that there's a new major release of Nextcloud ($NCVERSION).\nIf you want to update to the latest release instantly, please check this:\n
|
||||
https://docs.hanssonit.se/s/W6fMouPiqQz3_Mog/virtual-machines-vm/d/W7Du9uPiqQz3_Mr1/nextcloud-vm-machine-configuration?currentPageId=W7D3quPiqQz3_MsE"
|
||||
|
|
Загрузка…
Ссылка в новой задаче