gitlab-shell: don't hardcode gitlab-shell paths in authorized_keys
This commit is contained in:
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)
|
||||
|
Loading…
Reference in New Issue
Block a user