summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorRob Vermaas <rob.vermaas@gmail.com>2018-06-04 11:38:07 +0200
committerGitHub <noreply@github.com>2018-06-04 11:38:07 +0200
commit19332e4d527e0cc8ae98923126217cc7c9fba0b1 (patch)
tree75e249f3357ceba6b28cce960810b0d37e6b932c /nixos/modules/virtualisation
parente5dedc5f3b5a4b3473f635c946d2f241ea53c79a (diff)
parent1398d0c3128323f02e4e380c64bf817823a278c6 (diff)
downloadnixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar.gz
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar.bz2
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar.lz
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar.xz
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.tar.zst
nixlib-19332e4d527e0cc8ae98923126217cc7c9fba0b1.zip
Merge pull request #41311 from AmineChikhaoui/fix-gce-fetch-ssh
GCE image: properly remove the temporary ssh host keys files/directory
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r--nixos/modules/virtualisation/google-compute-image.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/google-compute-image.nix b/nixos/modules/virtualisation/google-compute-image.nix
index 374a84332357..de2c43b8a40a 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -257,7 +257,7 @@ in
               echo "Setup of ssh host keys from http://metadata.google.internal/computeMetadata/v1/instance/attributes/ failed."
               false
           fi
-          rm -f $SSH_HOST_KEYS_DIR
+          rm -rf $SSH_HOST_KEYS_DIR
         '';
       serviceConfig.Type = "oneshot";
       serviceConfig.RemainAfterExit = true;