diff options
| author | Julien Lepiller <julien@lepiller.eu> | 2020-10-05 17:47:13 +0200 |
|---|---|---|
| committer | Julien Lepiller <julien@lepiller.eu> | 2020-10-05 19:41:23 +0200 |
| commit | 4e3ed9bad9ed5758cdee6e636805f65e9ab710eb (patch) | |
| tree | 8f017d4a9d67d929327acf9e827c351ba520e649 /gnu/services/version-control.scm | |
| parent | c14714cbbfe9239410aec2ed73282192a64fbbdc (diff) | |
services: gitolite: Install the rc file as gitolite's user.
* gnu/services/version-control.scm (gitolite-activation): Install the rc
file as gitolite's user.
Diffstat (limited to 'gnu/services/version-control.scm')
| -rw-r--r-- | gnu/services/version-control.scm | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gnu/services/version-control.scm b/gnu/services/version-control.scm index cc07f8025bc..f3df0b979f9 100644 --- a/gnu/services/version-control.scm +++ b/gnu/services/version-control.scm | |||
| @@ -307,10 +307,15 @@ access to exported repositories under @file{/srv/git}." | |||
| 307 | (pubkey-file (string-append | 307 | (pubkey-file (string-append |
| 308 | #$home "/" | 308 | #$home "/" |
| 309 | (basename | 309 | (basename |
| 310 | (strip-store-file-name admin-pubkey))))) | 310 | (strip-store-file-name admin-pubkey)))) |
| 311 | (rc-file #$(string-append home "/.gitolite.rc"))) | ||
| 311 | 312 | ||
| 312 | (simple-format #t "guix: gitolite: installing ~A\n" #$rc-file) | 313 | (simple-format #t "guix: gitolite: installing ~A\n" #$rc-file) |
| 313 | (copy-file #$rc-file #$(string-append home "/.gitolite.rc")) | 314 | (copy-file #$rc-file rc-file) |
| 315 | ;; ensure gitolite's user can read the configuration | ||
| 316 | (chown rc-file | ||
| 317 | (passwd:uid user-info) | ||
| 318 | (passwd:gid user-info)) | ||
| 314 | 319 | ||
| 315 | ;; The key must be writable, so copy it from the store | 320 | ;; The key must be writable, so copy it from the store |
| 316 | (copy-file admin-pubkey pubkey-file) | 321 | (copy-file admin-pubkey pubkey-file) |
