summary refs log tree commit diff
path: root/nixos/modules/virtualisation
diff options
context:
space:
mode:
authorRussell O'Connor <oconnorr@google.com>2015-01-05 15:18:02 -0500
committerRussell O'Connor <oconnorr@google.com>2015-01-05 15:18:02 -0500
commit6382e16014af0e33e33c2e8bdd4fc52fe18c195c (patch)
tree040c3941e117c8f0d1668661842eca65a617d66d /nixos/modules/virtualisation
parentb19ab1f0465ec026cd4f33b08567aeaa9a9e1ed8 (diff)
downloadnixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar.gz
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar.bz2
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar.lz
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar.xz
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.tar.zst
nixlib-6382e16014af0e33e33c2e8bdd4fc52fe18c195c.zip
google-compute-image.nix: unconditionally clean up /root/key.pub /root/authorized-keys-metadata
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 808b64501829..287081be01b7 100644
--- a/nixos/modules/virtualisation/google-compute-image.nix
+++ b/nixos/modules/virtualisation/google-compute-image.nix
@@ -150,8 +150,8 @@ in
                         echo "new key added to authorized_keys"
                     fi
                     chmod 600 /root/.ssh/authorized_keys
-                    rm -f /root/key.pub /root/authorized-keys-metadata
                 fi
+                rm -f /root/key.pub /root/authorized-keys-metadata
           fi
 
           echo "obtaining SSH private host key..."