summaryrefslogtreecommitdiff
path: root/habitat/hooks
diff options
context:
space:
mode:
authorRobb Kidd <robb@thekidds.org>2017-01-17 20:01:39 -0500
committerRobb Kidd <robb@thekidds.org>2017-01-17 20:01:39 -0500
commit7572ba2fe13ad9fa7197c727b3fe05bb0310ced0 (patch)
treee47b1b17c79f4f7e1685490acfb1cce9fc4fc14e /habitat/hooks
parentd04aaf2b62a531274cd02ed2514e9692f843f8a2 (diff)
downloadchef-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/hooks')
-rw-r--r--habitat/hooks/run2
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