Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
gitlab-shell: don't hardcode gitlab-shell paths in authorized_keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Kristoffer Thømt Ravneberg authored and flokli committed Nov 28, 2018
1 parent 82c7dea commit a3ec5dc
Showing 1 changed file with 13 additions and 0 deletions.
Expand Up @@ -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)

0 comments on commit a3ec5dc

Please sign in to comment.