mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 10:01:55 +02:00
Merge pull request #5508 from marc1706/ticket/15935
[ticket/15935] Don't install APCu if it's already installed
This commit is contained in:
@@ -56,10 +56,13 @@ fi
|
|||||||
# APCu
|
# APCu
|
||||||
if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ]
|
if [ `php -r "echo (int) (version_compare(PHP_VERSION, '7.0.0-dev', '>=') && version_compare(PHP_VERSION, '7.3.0-dev', '<'));"` == "1" ]
|
||||||
then
|
then
|
||||||
echo 'Enabling APCu PHP extension'
|
if ! [ "$(pecl info pecl/apcu)" ]
|
||||||
printf "\n" | pecl install apcu
|
then
|
||||||
echo 'apc.enabled=1' >> "$php_ini_file"
|
echo 'Enabling APCu PHP extension'
|
||||||
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
printf "\n" | pecl install apcu
|
||||||
|
echo 'apc.enabled=1' >> "$php_ini_file"
|
||||||
|
echo 'apc.enable_cli=1' >> "$php_ini_file"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user