services: openssh: Remove authorized_keys.d before copying the new one.
Fixes <https://issues.guix.gnu.org/55661>. * gnu/services/ssh.scm (openssh-activation): Fix typo in 'delete-file-recursively' call.master
parent
0dc63ce519
commit
4577f3c6b6
|
@ -394,7 +394,7 @@ The other options should be self-descriptive."
|
||||||
;; authorized-key directory to /etc.
|
;; authorized-key directory to /etc.
|
||||||
(catch 'system-error
|
(catch 'system-error
|
||||||
(lambda ()
|
(lambda ()
|
||||||
(delete-file-recursively "/etc/authorized_keys.d"))
|
(delete-file-recursively "/etc/ssh/authorized_keys.d"))
|
||||||
(lambda args
|
(lambda args
|
||||||
(unless (= ENOENT (system-error-errno args))
|
(unless (= ENOENT (system-error-errno args))
|
||||||
(apply throw args))))
|
(apply throw args))))
|
||||||
|
|
Reference in New Issue