Skip to content

Commit

Permalink
Merge branch 'poliva83-poliva/fix-warn'
Browse files Browse the repository at this point in the history
ChangeLog-Entry: Fix Chef 13 warning in `reconfigure` related to using
environment entry to configure PATH.
  • Loading branch information
stevendanna committed Nov 3, 2015
2 parents a50470c + b894619 commit 1128fda
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@

execute "oc_id_schema" do
command "bundle exec rake db:migrate"
path ["/opt/opscode/embedded/bin"]
cwd "/opt/opscode/embedded/service/oc_id"

# There are other recipes that depend on having a VERSION environment
Expand All @@ -142,7 +141,8 @@
#
# Also set the RAILS_ENV as is needed.
environment("RAILS_ENV" => "production",
"VERSION" => `ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"`.chomp)
"VERSION" => `ls -1 /opt/opscode/embedded/service/oc_id/db/migrate | tail -n 1 | sed -e "s/_.*//g"`.chomp,
"PATH" => "/opt/opscode/embedded/bin")

only_if { is_data_master? }
end
Expand Down

0 comments on commit 1128fda

Please sign in to comment.