diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-06 20:22:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-06 20:22:51 -0300 |
commit | f60735f7e038d665727741f2386ee6b0d5e7a2e0 (patch) | |
tree | 606c0cf712df5bf94a0db7534cfb41da24aaf8ce | |
parent | ef35d83446b0182f17bd93afc9cff73745121c6a (diff) | |
download | hydra-f60735f7e038d665727741f2386ee6b0d5e7a2e0.tar.gz hydra-f60735f7e038d665727741f2386ee6b0d5e7a2e0.tar.bz2 |
Support for borg at hydra_genpairs
-rwxr-xr-x | share/hydra/newkeys | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/share/hydra/newkeys b/share/hydra/newkeys index 1f2f6e2..828ff3e 100755 --- a/share/hydra/newkeys +++ b/share/hydra/newkeys @@ -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 |