mirror of
https://github.com/nextcloud/vm.git
synced 2025-08-16 16:04:36 +00:00
check php version
Signed-off-by: Daniel Hansson <mailto@danielhansson.nu>
This commit is contained in:
@ -1000,6 +1000,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=82
|
||||
NC_VER=32
|
||||
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
|
||||
|
Reference in New Issue
Block a user