me
/
guix
Archived
1
0
Fork 0

gnu: gitolite: Avoid references to the store in authorized_keys.

* gnu/packages/version-control.scm (gitolite)[arguments]: Substitute
'$glshell' with 'gitolite-shell' in ssh-authkeys.
master
Clément Lassieur 2017-04-30 16:56:18 +02:00
parent 21b99aade1
commit db88b5a857
No known key found for this signature in database
GPG Key ID: 89F96D4808F359C7
1 changed files with 7 additions and 1 deletions

View File

@ -628,7 +628,13 @@ also walk each side of a merge and test those changes individually.")
;; invokes Perl.
(substitute* (find-files "." ".*")
((" perl -")
(string-append " " perl " -"))))))
(string-append " " perl " -")))
;; Avoid references to the store in authorized_keys.
;; This works because gitolite-shell is in the PATH.
(substitute* "src/triggers/post-compile/ssh-authkeys"
(("\\$glshell \\$user")
"gitolite-shell $user")))))
(replace 'install
(lambda* (#:key outputs #:allow-other-keys)
(let* ((output (assoc-ref outputs "out"))