Support empty $PHP_VERSION for default php-fpm service

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent b9b738be06
commit 73615c326b
  1. 3
      root/etc/e-smith/templates/etc/php-fpm.d/www.conf/00Default00Header

@ -1,7 +1,8 @@
{
use esmith::ConfigDB;
my $c = esmith::ConfigDB->open_ro || die "Couldn't opeen the configuration database\n";
my $php = $c->get( 'php' . $PHP_VERSION . '-php-fpm' );
my $srv = ( $PHP_VERSION ne '') ? 'php' . $PHP_VERSION . '-php-fpm' : 'php-fpm';
my $php = $c->get( $srv );
if ($php){
$MemoryLimit = $php->prop('MemoryLimit') || '128M';
$MaxExecutionTime = $php->prop('MaxExecutionTime') || '30';

Loading…
Cancel
Save