diff options
author | Kristoffer Thømt Ravneberg <ktra@dbc.dk> | 2018-11-08 13:11:19 +0100 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2018-11-28 23:09:23 +0100 |
commit | a3ec5dce2bcc7b346acd7a507821dc2bc105fbac (patch) | |
tree | e3c15f29d899f95c8bca7bfb656f127927107b7c /pkgs/applications/version-management/gitlab/gitlab-shell | |
parent | 82c7dea54a114a20b4401df42a6e1a1e1f3f34b7 (diff) | |
download | nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar.gz nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar.bz2 nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar.lz nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar.xz nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.tar.zst nixlib-a3ec5dce2bcc7b346acd7a507821dc2bc105fbac.zip |
gitlab-shell: don't hardcode gitlab-shell paths in authorized_keys
Diffstat (limited to 'pkgs/applications/version-management/gitlab/gitlab-shell')
-rw-r--r-- | pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch b/pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch index 6d29f5f9e6c5..3d381404c63b 100644 --- a/pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch +++ b/pkgs/applications/version-management/gitlab/gitlab-shell/remove-hardcoded-locations.patch @@ -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) |