Skip to content

Commit ac8b7cc

Browse files
authored
PHP 8.1 EOL (#2670)
Signed-off-by: Daniel Hansson <[email protected]>
1 parent 06bde77 commit ac8b7cc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

nextcloud_update.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -985,6 +985,21 @@ If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-
985985
fi
986986
fi
987987

988+
# Check if PHP version is compatible with $NCVERSION
989+
# https://github.com/nextcloud/server/issues/29258
990+
PHP_VER=81
991+
NC_VER=31
992+
if [ "${NCVERSION%%.*}" -ge "$NC_VER" ]
993+
then
994+
if [ "$(php -v | head -n 1 | cut -d " " -f 2 | cut -c 1,3)" -lt "$PHP_VER" ]
995+
then
996+
msg_box "Your PHP version isn't compatible with the new version of Nextcloud. Please upgrade your PHP stack and try again.
997+
998+
If you need support, please visit https://shop.hanssonit.se/product/upgrade-php-version-including-dependencies/"
999+
exit
1000+
fi
1001+
fi
1002+
9881003
# Upgrade Nextcloud
9891004
if ! site_200 "$NCREPO"
9901005
then

0 commit comments

Comments
 (0)