Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Added notification guard to symlink step so nothing gets linked unles…
Browse files Browse the repository at this point in the history
…s the service is installed.
  • Loading branch information
davepgreene committed May 25, 2017
1 parent b032899 commit 1db805e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cookbook/recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,15 @@
source resources('remote_file[propsd]').path
provider Chef::Provider::Package::Dpkg
version node['propsd']['version']

notifies :create, "link[#{node['propsd']['paths']['directory']}]", :immediately
end

## Symlink the version dir to the specified propsd directory
link node['propsd']['paths']['directory'] do
to version_dir

action :nothing
notifies :restart, 'service[propsd]' if node['propsd']['enable']
end

Expand Down

0 comments on commit 1db805e

Please sign in to comment.