From 67de66aa23c5c7bc2dd4f0e6540a4bccc200421f Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Mon, 1 Jun 2020 10:45:52 -0500 Subject: [PATCH] elif --- gravity-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity-sync.sh b/gravity-sync.sh index d1ea40b..d721965 100755 --- a/gravity-sync.sh +++ b/gravity-sync.sh @@ -932,7 +932,7 @@ function config_generate { if hash ssh-copy-id 2>/dev/null then ssh-copy-id -f -i $HOME/${SSH_PKIF}.pub ${REMOTE_USER}@${REMOTE_HOST} - elseif hash dropbearkey 2>/dev/null + elif hash dropbearkey 2>/dev/null then dropbearkey -t ecdsa -f $HOME/${SSH_PKIF} | grep "^ecdsa" > $HOME/${SSH_PKIF}.pub cat $HOME/${SSH_PKIF}.pub | dbclient ${REMOTE_USER}@${REMOTE_HOST} 'cat - >> .ssh/authorized_keys'