Skip to content

Commit 5eeda8c

Browse files
authored
allow PHP 8.1 for NC 32
Signed-off-by: enoch85 <mailto@danielhansson.nu>
1 parent e075c74 commit 5eeda8c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

nextcloud_update.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1002,7 +1002,7 @@ fi
10021002

10031003
# Check if PHP version is compatible with $NCVERSION
10041004
# https://github.com/nextcloud/server/issues/29258
1005-
PHP_VER=82
1005+
PHP_VER=81
10061006
NC_VER=32
10071007
if [ "${NCVERSION%%.*}" -ge "$NC_VER" ]
10081008
then
@@ -1015,6 +1015,21 @@ If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-
10151015
fi
10161016
fi
10171017

1018+
# Check if PHP version is compatible with $NCVERSION
1019+
# https://github.com/nextcloud/server/issues/29258
1020+
PHP_VER=82
1021+
NC_VER=33
1022+
if [ "${NCVERSION%%.*}" -ge "$NC_VER" ]
1023+
then
1024+
if [ "$(php -v | head -n 1 | cut -d " " -f 2 | cut -c 1,3)" -lt "$PHP_VER" ]
1025+
then
1026+
msg_box "Your PHP version isn't compatible with the new version of Nextcloud. Please upgrade your PHP stack and try again.
1027+
1028+
If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-version-including-dependencies/"
1029+
exit
1030+
fi
1031+
fi
1032+
10181033
# Upgrade Nextcloud
10191034
if ! site_200 "$NCREPO"
10201035
then

0 commit comments

Comments
 (0)