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

Commit

Permalink
Merge pull request #351 from aodn/logrotate_path
Browse files Browse the repository at this point in the history
Build path using `instance_dir`, as opposed to `homedir`.
  • Loading branch information
paulczar committed Sep 16, 2014
2 parents daafae2 + 7942242 commit c69d12a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def logrotate(ls)
@run_context.include_recipe 'logrotate::default'

logrotate_app "logstash_#{name}" do
path "#{ls[:homedir]}/log/*.log"
path "#{ls[:instance_dir]}/log/*.log"
size ls[:logrotate_size] if ls[:logrotate_use_filesize]
frequency ls[:logrotate_frequency]
rotate ls[:logrotate_max_backup]
Expand Down

0 comments on commit c69d12a

Please sign in to comment.