Skip to content

Commit bb2f6ee

Browse files
authored
add CURRENTMAJOR (#2503)
1 parent 138dbbf commit bb2f6ee

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ nc_update() {
133133
NCVERSION=$(curl -s -m 900 $NCREPO/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | tail -1)
134134
STABLEVERSION="nextcloud-$NCVERSION"
135135
NCMAJOR="${NCVERSION%%.*}"
136+
CURRENTMAJOR="${CURRENTVERSION%%.*}"
136137
NCBAD=$((NCMAJOR-2))
137138
NCNEXT="$((${CURRENTVERSION%%.*}+1))"
138139
}

nextcloud-startup-script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ bash $SCRIPTS/update.sh minor
562562

563563
# Check if new major is out, and inform on how to update
564564
nc_update
565-
if version_gt "$NCVERSION" "$CURRENTVERSION"
565+
if version_gt "$NCMAJOR" "$CURRENTMAJOR"
566566
then
567567
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
568568
https://docs.hanssonit.se/s/W6fMouPiqQz3_Mog/virtual-machines-vm/d/W7Du9uPiqQz3_Mr1/nextcloud-vm-machine-configuration?currentPageId=W7D3quPiqQz3_MsE"

0 commit comments

Comments
 (0)