aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-29 22:48:40 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-29 22:48:40 -0300
commit013b6f0697050532a9c62e7a62eb81025b9317b1 (patch)
treefc2efcc8f8870cf24781af6d703fe7a534923703
parent14fe6b096280cd37f9c63e2801f55ddb71a4dd61 (diff)
downloadkvmx-013b6f0697050532a9c62e7a62eb81025b9317b1.tar.gz
kvmx-013b6f0697050532a9c62e7a62eb81025b9317b1.tar.bz2
Ensure SSH folder exists at kvmx_rotate_sshkeys
-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`"