Fixes and cleanup in shares template

tags/0.0.1_0.fc26_el5
Daniel Berteaud 8 years ago
parent 9ac0ec6917
commit c793cdef93
  1. 6
      root/etc/e-smith/templates/etc/php-fpm.d/shares.conf/10Shares

@ -12,7 +12,8 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){
my $post_max_size = $share->prop('PHPPostMaxSize') || '10M';
my $upload_max_filesize = $share->prop('PHPUploadMaxFilesize') || '10M';
my $file_upload = $share->prop('PHPFileUpload') || 'enabled';
my $open_basedir = $share->prop('PHPBaseDir') || '/home/e-smith/files/shares/' . $key . ':/var/lib/php/' . $pool_name;
my $open_basedir = $share->prop('PHPBaseDir') || '/home/e-smith/files/shares/' . $$pool_name .
':/var/lib/php/' . $pool_name;
my $disabled_functions = $share->prop('PHPDisabledFunctions') || 'system,show_source,' .
'symlink,exec,dl,shell_exec,' .
'passthru,phpinfo,' .
@ -22,7 +23,8 @@ foreach my $share ($a->get_all_by_prop(type => 'share')){
$allow_url_fopen = ($allow_url_fopen =~ m/^1|yes|on|enabled$/) ? 'on' : 'off';
$disabled_functions = join(', ', split /[,;:]/, $disabled_functions);
my $version = $share->prop('PHPVersion') || 'default';
$OUT .=<<"_EOF" if ($version == $PHP_VERSION or ($PHP_VERSION eq '' && $version == 'default'));
$OUT .=<<"_EOF" if ($version eq $PHP_VERSION or ($PHP_VERSION eq '' && $version eq 'default'));
[$pool_name]
user = www

Loading…
Cancel
Save