diff --git a/createlinks b/createlinks index 45079b3..ba63bf3 100644 --- a/createlinks +++ b/createlinks @@ -12,15 +12,19 @@ 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 + /etc/sysconfig/php-fpm /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 + /opt/remi/php56/root/etc/sysconfig/php-fpm /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/php70/sysconfig/php-fpm /etc/opt/remi/php71/php-fpm.conf /etc/opt/remi/php71/php-fpm.d/www.conf - /etc/opt/remi/php71/php-fpm.d/shares.conf ){ + /etc/opt/remi/php71/php-fpm.d/shares.conf + /etc/opt/remi/php71/sysconfig/php-fpm ){ templates2events($file, qw(webapps-update bootstrap-console-save)); safe_symlink('/etc/e-smith/templates-default/template-begin-ini', "root/etc/e-smith/templates$file/template-begin"); } diff --git a/root/etc/e-smith/templates.metadata/etc/opt/remi/php70/sysconfig/php-fpm b/root/etc/e-smith/templates.metadata/etc/opt/remi/php70/sysconfig/php-fpm new file mode 100644 index 0000000..daaeef2 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/opt/remi/php70/sysconfig/php-fpm @@ -0,0 +1,2 @@ +TEMPLATE_PATH="/etc/sysconfig/php-fpm" +MORE_DATA={ PHP_VERSION => 70 } diff --git a/root/etc/e-smith/templates.metadata/etc/opt/remi/php71/sysconfig/php-fpm b/root/etc/e-smith/templates.metadata/etc/opt/remi/php71/sysconfig/php-fpm new file mode 100644 index 0000000..daaeef2 --- /dev/null +++ b/root/etc/e-smith/templates.metadata/etc/opt/remi/php71/sysconfig/php-fpm @@ -0,0 +1,2 @@ +TEMPLATE_PATH="/etc/sysconfig/php-fpm" +MORE_DATA={ PHP_VERSION => 70 } diff --git a/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/sysconfig/php-fpm b/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/sysconfig/php-fpm new file mode 100644 index 0000000..59f6a8b --- /dev/null +++ b/root/etc/e-smith/templates.metadata/opt/remi/php56/root/etc/sysconfig/php-fpm @@ -0,0 +1,2 @@ +TEMPLATE_PATH="/etc/sysconfig/php-fpm" +MORE_DATA={ PHP_VERSION => 56 } diff --git a/root/etc/e-smith/templates/etc/sysconfig/php-fpm/10PidFile b/root/etc/e-smith/templates/etc/sysconfig/php-fpm/10PidFile new file mode 100644 index 0000000..b47df87 --- /dev/null +++ b/root/etc/e-smith/templates/etc/sysconfig/php-fpm/10PidFile @@ -0,0 +1 @@ +PIDFILE=/var/run/php-fpm/php{ $PHP_VERSION }-fpm.pid