]> gitweb.fluxo.info Git - hydra.git/commitdiff
Compile: fixes ssh pubkey value
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 17:20:09 +0000 (14:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 23 Jun 2016 17:20:09 +0000 (14:20 -0300)
share/hydra/compile

index 716742481cd3a8b0ade71870a95719910050c4ff..b120d0d1486c8ec99a2f42a4d502ea465b7f9412 100755 (executable)
@@ -43,7 +43,7 @@ for node in $NODES; do
   if [ -e "$HYDRA_FOLDER/keyring/keys/nodes/$node/ssh/id_rsa.pub.asc" ]; then
     echo "Adding SSH public key for $node..."
     key="compiled::ssh::key::$node_key"
-    value="$(keyringer $HYDRA decrypt nodes/$node/ssh/id_rsa.pub 2> /dev/null)"
+    value="$(keyringer $HYDRA decrypt nodes/$node/ssh/id_rsa.pub 2> /dev/null | cut -d ' ' -f 2)"
     echo "$key: '$value'" >> $CONFIG
   fi
 done