gitlab-shell: don't hardcode gitlab-shell paths in authorized_keys

This commit is contained in:
Kristoffer Thømt Ravneberg 2018-11-08 13:11:19 +01:00 committed by Florian Klink
parent 82c7dea54a
commit a3ec5dce2b

@ -43,3 +43,16 @@ index 57c70f5..700569b 100644
end
def api
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb
index 0600a18..6814f0a 100644
--- a/lib/gitlab_keys.rb
+++ b/lib/gitlab_keys.rb
@@ -10,7 +10,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength
attr_accessor :auth_file, :key
def self.command(whatever)
- "#{ROOT_PATH}/bin/gitlab-shell #{whatever}"
+ "/run/current-system/sw/bin/gitlab-shell #{whatever}"
end
def self.command_key(key_id)