Skip to content

Commit

Permalink
remove existing ui dir if not a symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
reset committed Feb 6, 2015
1 parent 3c5eaec commit 3a0c82e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions recipes/ui.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@
action :extract
end

# JW TODO: Remove after next major release.
file Chef::ConsulUI.active_path(node) do
action :delete
not_if "test -L #{Chef::ConsulUI.active_path(node)}"
end

link Chef::ConsulUI.active_path(node) do
to Chef::ConsulUI.latest_dist(node)
end

0 comments on commit 3a0c82e

Please sign in to comment.