diff options
-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 |