summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-05-26 17:00:33 +0200
committerLudovic Courtès <ludo@gnu.org>2022-05-26 17:00:33 +0200
commit4577f3c6b60ea100e521c246fb169d6c05214b20 (patch)
treed3117908b6475f4eb11390e69949f80e22ff2616 /gnu
parent0dc63ce519c5f98b2186d1871176e2fac3a6926b (diff)
downloadguix-4577f3c6b60ea100e521c246fb169d6c05214b20.tar.gz
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.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/ssh.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/services/ssh.scm b/gnu/services/ssh.scm
index aa024599a1..57d3ad218c 100644
--- a/gnu/services/ssh.scm
+++ b/gnu/services/ssh.scm
@@ -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))))