aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx1
1 files changed, 1 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 8fe576b..db7514c 100755
--- a/kvmx
+++ b/kvmx
@@ -677,6 +677,7 @@ function kvmx_log {
# Rotate SSH keys
function kvmx_rotate_sshkeys {
# Generate new keypair
+ mkdir -p "$STORAGE/ssh"
SSHKEY="$STORAGE/ssh/$VM.key"
$DIRNAME/kvmx-keygen $SSHKEY.new "$user@`basename $image .img`"