add new setting to specify values for the PATH env-variable for php-fpm

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2018-01-26 17:30:20 +01:00
parent fcd0dddfd5
commit 2603a9c869
7 changed files with 30 additions and 2 deletions

View File

@@ -169,6 +169,10 @@ class phpinterface_fpm
$this->getTempDir();
}
$env_path = Settings::Get('phpfpm.envpath');
if (!empty($env_path)) {
$fpm_config .= 'env[PATH] = ' . $env_path . "\n";
}
$fpm_config .= 'env[TMP] = ' . $tmpdir . "\n";
$fpm_config .= 'env[TMPDIR] = ' . $tmpdir . "\n";
$fpm_config .= 'env[TEMP] = ' . $tmpdir . "\n";