diff options
-rw-r--r-- | habitat/hooks/run | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/habitat/hooks/run b/habitat/hooks/run index c6e7f64c6e..598d609d7f 100644 --- a/habitat/hooks/run +++ b/habitat/hooks/run @@ -9,4 +9,8 @@ else CLIENT_CONFIG="{{cfg.config_path}}" fi -exec chef-client --fork -c ${CLIENT_CONFIG}/client.rb --chef-license {{cfg.chef_license}} +if [[ "${CLIENT_CONFIG##*.}" != "rb" ]]; then + CLIENT_CONFIG=${CLIENT_CONFIG}/client.rb +fi + +exec chef-client --fork -c ${CLIENT_CONFIG} --chef-license {{cfg.chef_license}} |