summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorGeorge Hartzell <hartzell@alerce.com>2017-04-19 04:51:04 -0700
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-19 06:51:04 -0500
commit13fef18244d4e09c9ffe98321ed7eb8808fdb8fc (patch)
tree2b28b7a46ec3db27bb982174aa3f582c7b2dc8ee /var
parenteaefaaba5bf7cc8475179604e2c1f9e583f0c16d (diff)
downloadspack-13fef18244d4e09c9ffe98321ed7eb8808fdb8fc.tar.gz
spack-13fef18244d4e09c9ffe98321ed7eb8808fdb8fc.tar.bz2
spack-13fef18244d4e09c9ffe98321ed7eb8808fdb8fc.tar.xz
spack-13fef18244d4e09c9ffe98321ed7eb8808fdb8fc.zip
Ensure sbin is prepended to PATH in modulefiles (#3843)
Diffstat (limited to 'var')
-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'))