From ed3298fc019d224b9048901972ac03e5272a3b25 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 16 Feb 2015 13:16:26 +0100 Subject: Allow to configure gitlab_shell_secret location --- lib/api/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/api/helpers.rb') diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index 85e9081680d..1ebf9a1f022 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -243,7 +243,7 @@ module API end def secret_token - File.read(Rails.root.join('.gitlab_shell_secret')).chomp + File.read(Gitlab.config.gitlab_shell.secret_file).chomp end def handle_member_errors(errors) -- cgit v1.2.1