Skip to content

Commit

Permalink
Merge branch 'main' into locate-mirror-improvments
Browse files Browse the repository at this point in the history
  • Loading branch information
enoch85 authored Sep 19, 2024
2 parents c5e774a + ac8b7cc commit 108b76f
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ elif [ -f "$GEOBLOCK_MOD" ]
then
if download_geoip_mmdb
then
print_text_in_color "IGreen" "MaxMind database updated!"
print_text_in_color "$IGreen" "MaxMind database updated!"
fi
fi

Expand Down Expand Up @@ -985,6 +985,21 @@ If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-
fi
fi

# Check if PHP version is compatible with $NCVERSION
# https://github.com/nextcloud/server/issues/29258
PHP_VER=81
NC_VER=31
if [ "${NCVERSION%%.*}" -ge "$NC_VER" ]
then
if [ "$(php -v | head -n 1 | cut -d " " -f 2 | cut -c 1,3)" -lt "$PHP_VER" ]
then
msg_box "Your PHP version isn't compatible with the new version of Nextcloud. Please upgrade your PHP stack and try again.
If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-version-including-dependencies/"
exit
fi
fi

# Upgrade Nextcloud
if ! site_200 "$NCREPO"
then
Expand Down

0 comments on commit 108b76f

Please sign in to comment.