Commit 824db7f3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

createbytask.int.sh: add PHPMODULES support

parent 868da69a
...@@ -352,6 +352,15 @@ tune_local_memcached_redis() ...@@ -352,6 +352,15 @@ tune_local_memcached_redis()
fi fi
} }
install_php_modules()
{
local LIST=''
for i in $PHPMODULES ; do
LIST="$LIST $1-$i"
done
epmi --auto --skip-installed $LIST
}
tune_php7_fpm() tune_php7_fpm()
{ {
# /etc/fpm7/php-fpm.d/mediawiki.conf # /etc/fpm7/php-fpm.d/mediawiki.conf
...@@ -397,12 +406,14 @@ for i in $PKGPROFILE ; do ...@@ -397,12 +406,14 @@ for i in $PKGPROFILE ; do
tune_apache2 tune_apache2
tune_local_memcached_redis tune_local_memcached_redis
tune_monit_apache2 tune_monit_apache2
install_php_modules php7
;; ;;
apache2-php8) apache2-php8)
tune_php /etc/php/8.?/apache2-mod_php/php.ini tune_php /etc/php/8.?/apache2-mod_php/php.ini
tune_apache2 tune_apache2
tune_local_memcached_redis tune_local_memcached_redis
tune_monit_apache2 tune_monit_apache2
install_php_modules php8.1
;; ;;
apache2-php7-mediawiki) apache2-php7-mediawiki)
# FIXME: # FIXME:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment