]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Fix sshdir use at kvmx-create
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 13 Jun 2018 23:38:56 +0000 (20:38 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 13 Jun 2018 23:38:56 +0000 (20:38 -0300)
kvmx-create

index 260b7f5579f9dcf0595e07edb6f039e110643e3c..ae42c39b08c800f8bb331f3072406e41f096e0ba 100755 (executable)
@@ -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