summaryrefslogtreecommitdiff
path: root/lib/chef/knife/bootstrap/templates/chef-full.erb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@getchef.com>2019-04-29 11:35:59 -0700
committerGitHub <noreply@github.com>2019-04-29 11:35:59 -0700
commitf2707fcd07d4a906008da9f3891e6e0829605367 (patch)
tree3648295f678661ebeb3961121cd6005e1f669645 /lib/chef/knife/bootstrap/templates/chef-full.erb
parentb3e8019c540af3be4634c4c76edeba47d67fa6f0 (diff)
parent0fb79f0a5f8d2c8ca1f9ddb0d0b0267b300dc81f (diff)
downloadchef-f2707fcd07d4a906008da9f3891e6e0829605367.tar.gz
Merge pull request #8418 from cc-build/bulk_distro_constant
"chef-client" => #{Chef::Dist::CLIENT}
Diffstat (limited to 'lib/chef/knife/bootstrap/templates/chef-full.erb')
-rw-r--r--lib/chef/knife/bootstrap/templates/chef-full.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/knife/bootstrap/templates/chef-full.erb b/lib/chef/knife/bootstrap/templates/chef-full.erb
index ec1f7e72c9..58a64a23b8 100644
--- a/lib/chef/knife/bootstrap/templates/chef-full.erb
+++ b/lib/chef/knife/bootstrap/templates/chef-full.erb
@@ -172,7 +172,7 @@ do_download() {
<%= knife_config[:bootstrap_install_command] %>
<% else %>
install_sh="<%= knife_config[:bootstrap_url] ? knife_config[:bootstrap_url] : "https://omnitruck.chef.io/chef/install.sh" %>"
- if test -f /usr/bin/chef-client; then
+ if test -f /usr/bin/<%= Chef::Dist::CLIENT %>}; then
echo "-----> Existing <%= Chef::Dist::PRODUCT %> installation detected"
else
echo "-----> Installing Chef Omnibus (<%= latest_current_chef_version_string %>)"