mirror of
https://github.com/openresty/openresty.git
synced 2024-10-13 00:29:41 +00:00
bugfix: resty utility: not all the system environments were passed in.
This commit is contained in:
12
util/resty
12
util/resty
@ -111,6 +111,12 @@ my $loader = <<_EOC_;
|
||||
end
|
||||
_EOC_
|
||||
|
||||
my $env_list = '';
|
||||
for my $var (sort keys %ENV) {
|
||||
#warn $var;
|
||||
$env_list .= "env $var;\n";
|
||||
}
|
||||
|
||||
my $conf_file = File::Spec->catfile($conf_dir, "nginx.conf");
|
||||
open my $out, ">$conf_file"
|
||||
or die "Cannot open $conf_file for writing: $!\n";
|
||||
@ -120,11 +126,7 @@ daemon off;
|
||||
master_process off;
|
||||
worker_processes 1;
|
||||
|
||||
env LD_LIBRARY_PATH;
|
||||
env LD_PRELOAD;
|
||||
env PATH;
|
||||
env LUA_PATH;
|
||||
env LUA_CPATH;
|
||||
$env_list
|
||||
|
||||
error_log /dev/stderr warn;
|
||||
#error_log /dev/stderr debug;
|
||||
|
Reference in New Issue
Block a user