]> gitweb.fluxo.info Git - hydra.git/commitdiff
Support for borg at hydra_genpairs
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Jun 2018 23:22:51 +0000 (20:22 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 6 Jun 2018 23:22:51 +0000 (20:22 -0300)
share/hydra/newkeys

index 1f2f6e238bda36e4aa60bfaa2ac0eea395e64483..828ff3eadcc5502295e9104c4e3fbf7a9e4c1dc9 100755 (executable)
@@ -54,7 +54,7 @@ function hydra_newkeys {
       fi
 
       if [ ! -e "$borgkey" ]; then
-        hydra_newkeys_borg $node
+        hydra_genpairs borg $node
       fi
     elif [ "$which" == "ssh" ]; then
       hydra_genpairs ssh $node
@@ -115,8 +115,8 @@ function hydra_genpairs {
     keyringer $HYDRA genpair gpg nodes/$node/gpg/key    $node
   elif [ "$which" == "ssh" ]; then
     keyringer $HYDRA genpair ssh nodes/$node/ssh/id_rsa $node
-  else
-    return
+  elif [ "$which" == "borg" ]; then
+    hydra_newkeys_borg $node
   fi
 
   hydra_set_tmpfile genpair