Skip to content

Commit

Permalink
NC 26 requires PHP 8.0
Browse files Browse the repository at this point in the history
Ref nextcloud/server#34692 (comment)

Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
  • Loading branch information
enoch85 authored Nov 14, 2022
1 parent d1ba24e commit 92eab94
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nextcloud_update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,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=80
NC_VER=26
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 92eab94

Please sign in to comment.