aboutsummaryrefslogtreecommitdiff
path: root/kvmx-create
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-06-13 20:38:56 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-06-13 20:38:56 -0300
commita2f7f37d3e8eabc7fa55485762840e9745d66b60 (patch)
treedd3eeee50ea1f3a855ced2925d7bca2c197736bf /kvmx-create
parentb48a6c3a57aa25ae396de581d7e276754580bffc (diff)
downloadkvmx-a2f7f37d3e8eabc7fa55485762840e9745d66b60.tar.gz
kvmx-a2f7f37d3e8eabc7fa55485762840e9745d66b60.tar.bz2
Fix sshdir use at kvmx-create
Diffstat (limited to 'kvmx-create')
-rwxr-xr-xkvmx-create4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmx-create b/kvmx-create
index 260b7f5..ae42c39 100755
--- a/kvmx-create
+++ b/kvmx-create
@@ -470,7 +470,7 @@ EOF
#if [ "$ssh_support" == "y" ]; then
if [ "$ssh_custom" == "y" ]; then
if [ ! -z "$ssh_custom_pubkey" ]; then
- pubkey="$sshdir/ssh/$hostname.key.pub"
+ pubkey="$sshdir/$hostname.key.pub"
if [ -e "$ssh_custom_pubkey" ]; then
cp $ssh_custom_pubkey $pubkey
@@ -478,7 +478,7 @@ EOF
echo $ssh_custom_pubkey > $pubkey
fi
else
- privkey="$sshdir/ssh/$hostname.key"
+ privkey="$sshdir/$hostname.key"
pubkey="${privkey}.pub"
__kvmx_ssh_keygen $privkey "$user@$hostname"
fi