Skip to content

Commit

Permalink
Fix directory creation with LWRP.
Browse files Browse the repository at this point in the history
  • Loading branch information
John Bellone committed Sep 26, 2014
1 parent 02d48b3 commit 9b8bc38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions libraries/lockrun_cron.rb
Expand Up @@ -45,6 +45,9 @@ class Provider::LockrunCron < Provider::Cron
def action_create
lockfile_path = ::File.dirname(new_resource.lockfile)
directory lockfile_path do
recursive true
group node['lockrun']['group']
mode 0774
not_if { ::Dir.exist?(lockfile_path) }
end

Expand Down

0 comments on commit 9b8bc38

Please sign in to comment.