Merge pull request #41311 from AmineChikhaoui/fix-gce-fetch-ssh

GCE image: properly remove the temporary ssh host keys files/directory
This commit is contained in:
Rob Vermaas 2018-06-04 11:38:07 +02:00 committed by GitHub
commit 19332e4d52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;