feature: now we create the <openresty-prefix>/bin/openresty symlink which points to <openresty-prefix>/nginx/sbin/nginx to avoid polluting the PATH environment with the name "nginx".

This commit is contained in:
Yichun Zhang (agentzh)
2016-07-14 17:53:07 -07:00
parent 9fa2d93c6b
commit 8d76d5910f
2 changed files with 60 additions and 5 deletions

4
util/configure vendored
View File

@ -341,6 +341,10 @@ push @make_cmds, "cd $root_dir/build/$ngx_dir && "
push @make_install_cmds, "cd $root_dir/build/$ngx_dir && "
. "\$(MAKE) install DESTDIR=\$(DESTDIR)";
if ($platform ne 'msys') {
push @make_install_cmds, "ln -sf $ngx_prefix/sbin/nginx \$(DESTDIR)$prefix/bin/openresty";
}
cd '../..'; # to the root
#die "pwd: " .. `pwd`;