mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
guix archive: Make sure $sysconfdir/guix exists in '--authorize'.
* guix/scripts/archive.scm (authorize-key): Add 'mkdir-p' call. Reported by Alex Sassmannshausen <alex.sassmannshausen@gmail.com>.
This commit is contained in:
parent
ef27aa9c8c
commit
de28fefd77
1 changed files with 1 additions and 0 deletions
|
@ -286,6 +286,7 @@ (define (read-key)
|
|||
|
||||
;; Add KEY to the ACL and write that.
|
||||
(let ((acl (public-keys->acl (cons key (acl->public-keys acl)))))
|
||||
(mkdir-p (dirname %acl-file))
|
||||
(with-atomic-file-output %acl-file
|
||||
(lambda (port)
|
||||
(display (canonical-sexp->string acl) port))))))
|
||||
|
|
Loading…
Reference in a new issue