3
5
Fork 0
mirror of git://git.savannah.gnu.org/guix.git synced 2023-12-14 03:33:07 +01:00

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.
This commit is contained in:
Ludovic Courtès 2022-05-26 17:00:33 +02:00
parent 0dc63ce519
commit 4577f3c6b6
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -394,7 +394,7 @@ The other options should be self-descriptive."
;; authorized-key directory to /etc.
(catch 'system-error
(lambda ()
(delete-file-recursively "/etc/authorized_keys.d"))
(delete-file-recursively "/etc/ssh/authorized_keys.d"))
(lambda args
(unless (= ENOENT (system-error-errno args))
(apply throw args))))