diff options
author | Robb Kidd <robb@thekidds.org> | 2017-01-17 20:01:39 -0500 |
---|---|---|
committer | Robb Kidd <robb@thekidds.org> | 2017-01-17 20:01:39 -0500 |
commit | 7572ba2fe13ad9fa7197c727b3fe05bb0310ced0 (patch) | |
tree | e47b1b17c79f4f7e1685490acfb1cce9fc4fc14e /habitat | |
parent | d04aaf2b62a531274cd02ed2514e9692f843f8a2 (diff) | |
download | chef-7572ba2fe13ad9fa7197c727b3fe05bb0310ced0.tar.gz |
use pkg.path variable to reference path to self
This will resolve an error that appears if this package is built and run
for development or personal use under a different origin.
Signed-off-by: Robb Kidd <robb@thekidds.org>
Diffstat (limited to 'habitat')
-rw-r--r-- | habitat/hooks/run | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/habitat/hooks/run b/habitat/hooks/run index cbfa24ab62..0f3844dd5f 100644 --- a/habitat/hooks/run +++ b/habitat/hooks/run @@ -1,5 +1,5 @@ #!/bin/sh -export GEM_HOME="$(hab pkg path chef/chef-client)/ruby/2.3.0" +export GEM_HOME="{{pkg.path}}/ruby/2.3.0" export GEM_PATH="$(hab pkg path core/ruby)/lib/ruby/gems/2.3.0:$(hab pkg path core/bundler):$GEM_HOME" export APPBUNDLER_ALLOW_RVM=true |