summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/nginx/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/nginx/package.py b/var/spack/repos/builtin/packages/nginx/package.py
index 4be107ca81..1ab2f27695 100644
--- a/var/spack/repos/builtin/packages/nginx/package.py
+++ b/var/spack/repos/builtin/packages/nginx/package.py
@@ -42,3 +42,7 @@ class Nginx(AutotoolsPackage):
def configure_args(self):
args = ['--with-http_ssl_module']
return args
+
+ def setup_environment(self, spack_env, run_env):
+ """Prepend the sbin directory to PATH."""
+ run_env.prepend_path('PATH', join_path(self.prefix, 'sbin'))