Expand templates for shares PHP FPM pools config

This commit is contained in:
Daniel Berteaud 2017-07-08 11:15:51 +02:00
parent 0a70b24010
commit d73eb21445
1 changed files with 11 additions and 1 deletions

View File

@ -11,11 +11,21 @@ foreach my $service (qw(php-fpm php56-php-fpm php70-php-fpm php71-php-fpm)){
foreach my $file qw( /etc/php-fpm.conf
/etc/php-fpm.d/www.conf
/etc/php-fpm.d/shares.conf
/opt/remi/php56/root/etc/php-fpm.conf
/opt/remi/php56/root/etc/php-fpm.d/www.conf
/opt/remi/php56/root/etc/php-fpm.d/shares.conf
/etc/opt/remi/php70/php-fpm.conf
/etc/opt/remi/php70/php-fpm.d/www.conf
/etc/opt/remi/php70/php-fpm.d/shares.conf
/etc/opt/remi/php71/php-fpm.conf
/etc/opt/remi/php71/php-fpm.d/www.conf ){
/etc/opt/remi/php71/php-fpm.d/www.conf
/etc/opt/remi/php71/php-fpm.d/shares.conf ){
templates2events($file, qw(webapps-update bootstrap-console-save));
}
safe_symlink('/etc/e-smith/templates.metadata/etc/php-fpm.d/www.conf' , 'root/etc/e-smith/templates.metadata/etc/php-fpm.d/shares.conf');
safe_symlink('/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/www.conf', 'root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/php-fpm.d/shares.conf');
safe_symlink('/etc/e-smith/templates.metadata/etc/opt/remi/php70/php-fpm.d/www.conf', 'root/etc/e-smith/templates.metadata/etc/opt/remi/php70/php-fpm.d/shares.conf');
safe_symlink('/etc/e-smith/templates.metadata/etc/opt/remi/php71/php-fpm.d/www.conf', 'root/etc/e-smith/templates.metadata/etc/opt/remi/php71/php-fpm.d/shares.conf');