Skip to content

Commit

Permalink
Merge pull request #227 from kisoku/fix_periodic
Browse files Browse the repository at this point in the history
restore backwards compatability by respecting node['apt']['periodic_u…
  • Loading branch information
tas50 authored Jun 20, 2017
2 parents b8216cd + 6a23139 commit 85c992f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions recipes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@

# If compile_time_update run apt-get update at compile time
if node['apt']['compile_time_update'] && apt_installed?
apt_update('compile time').run_action(:periodic)
apt_update('compile time') do
frequency node['apt']['periodic_update_min_delay']
end.run_action(:periodic)
end

apt_update 'periodic'
apt_update 'periodic' do
frequency node['apt']['periodic_update_min_delay']
end

# For other recipes to call to force an update
execute 'apt-get update' do
Expand Down

0 comments on commit 85c992f

Please sign in to comment.