diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2016-05-12 17:40:34 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2016-05-12 17:40:34 -0300 |
commit | faba99e4402e8a584b3ff098d06afb3bcc1667f0 (patch) | |
tree | 2d63440f9fc6eb7562b96916809e86cfbddcfb19 | |
parent | 068cfa7fa6c61643c6769c5b7f8746048feca7da (diff) | |
download | hydra-faba99e4402e8a584b3ff098d06afb3bcc1667f0.tar.gz hydra-faba99e4402e8a584b3ff098d06afb3bcc1667f0.tar.bz2 |
Use hydra_get_fqdn_from_nodename on import-keys
-rwxr-xr-x | share/hydra/import-keys | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/import-keys b/share/hydra/import-keys index b180d28..dc9d575 100755 --- a/share/hydra/import-keys +++ b/share/hydra/import-keys @@ -30,7 +30,7 @@ function hydra_import_keys_openpgp { continue fi - $HYDRA_CONNECT $node <<EOF + $HYDRA_CONNECT $hostname <<EOF ##### BEGIN REMOTE SCRIPT ##### echo "" echo "-----------------------------" @@ -71,7 +71,7 @@ for node in $NODES; do if [ ! -z "$HOST" ]; then hostname="$HOST" else - hostname="`echo $node | cut -d . -f 1`" + hostname="`hydra_get_fqdn_from_nodename $node`" fi # Import OpenPGP keypair |