mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Merge branch 'session_expire_delay_cannot_be_nil' into 'master'
Maybe rescue session_expire_delay by setting a default value. Related to gitlab-org/omnibus-gitlab#956 See merge request !1880
This commit is contained in:
committed by
Robert Speicher
parent
367d178564
commit
e696bdcdaa
@@ -3,10 +3,11 @@
|
||||
require 'gitlab/current_settings'
|
||||
include Gitlab::CurrentSettings
|
||||
|
||||
# allow it to fail: it may to do so when create_from_defaults is executed before migrations are actually done
|
||||
# allow it to fail: it may do so when create_from_defaults is executed before migrations are actually done
|
||||
begin
|
||||
Settings.gitlab['session_expire_delay'] = current_application_settings.session_expire_delay
|
||||
Settings.gitlab['session_expire_delay'] = current_application_settings.session_expire_delay || 10080
|
||||
rescue
|
||||
Settings.gitlab['session_expire_delay'] ||= 10080
|
||||
end
|
||||
|
||||
unless Rails.env.test?
|
||||
|
||||
Reference in New Issue
Block a user