Commit 11a49ac49ab1f7c39ce865d5ee1472d32a535382

Authored by Jacob Vosmaer
2 parents 8da230e7 e2f72863

Merge branch 'sidekiq_log' into 'master'

Fix missing sidekiq.log in the admin interface

See merge request !182
CHANGELOG
... ... @@ -9,6 +9,7 @@ omnibus-gitlab repository.
9 9 - Enable the 'ssh_host' field in gitlab.yml (Florent Baldino)
10 10 - Create git's home directory if necessary
11 11 - Update openssl to 1.0.1i
  12 +- Fix missing sidekiq.log in the GitLab admin interface
12 13  
13 14 7.1.0
14 15 - Build: explicitly use .forward for sending notifications
... ...
files/gitlab-cookbooks/gitlab/recipes/gitlab-rails.rb
... ... @@ -188,6 +188,12 @@ end
188 188 end
189 189 end
190 190  
  191 +legacy_sidekiq_log_file = File.join(gitlab_rails_log_dir, 'sidekiq.log')
  192 +link legacy_sidekiq_log_file do
  193 + to File.join(node['gitlab']['sidekiq']['log_directory'], 'current')
  194 + not_if { File.exists?(legacy_sidekiq_log_file) }
  195 +end
  196 +
191 197 # Make schema.rb writable for when we run `rake db:migrate`
192 198 file "/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb" do
193 199 owner node['gitlab']['user']['username']
... ...