1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-13 01:22:09 +02:00

[ticket/16711] Fix PHP 8.1 builds

PHPBB3-16711
This commit is contained in:
rxu
2021-02-22 12:16:23 +07:00
parent bd1c3c87b7
commit 4ce2643bdb
2 changed files with 10 additions and 6 deletions

View File

@@ -28,9 +28,15 @@ NGINX_PHP_CONF="$DIR/nginx-php.conf"
PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION"
PHP_FPM_CONF="$DIR/php-fpm.conf"
if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" == '8.1' ] && [ -f "/usr/bin/php-fpm" ]
if [ "$PHP_VERSION" == '8.1' ]
then
PHP_FPM_BIN="/usr/bin/php-fpm"
if [ -f "/usr/sbin/php-fpm8.0" ]
then
PHP_FPM_BIN="/usr/sbin/php-fpm8.0"
elif [ ! -f $PHP_FPM_BIN ] && [ -f "/usr/bin/php-fpm" ]
then
PHP_FPM_BIN="/usr/bin/php-fpm"
fi
fi
if [ ! -f $PHP_FPM_BIN ] && [ "$PHP_VERSION" != '8.1' ]