aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-12 18:18:01 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-12 18:18:01 -0200
commitbb873d81289eb21f67d1da1fa4d2efc204bd0dd5 (patch)
tree4b1c6ea64ac8abda2da81b3665b4a4b9232161bd
parent3a4622b57877315a8e7221448718122d958dba39 (diff)
downloadhydra-bb873d81289eb21f67d1da1fa4d2efc204bd0dd5.tar.gz
hydra-bb873d81289eb21f67d1da1fa4d2efc204bd0dd5.tar.bz2
Deploy: use hostname cmd instead of facter
-rwxr-xr-xshare/hydra/deploy4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/hydra/deploy b/share/hydra/deploy
index 4b07512..093b723 100755
--- a/share/hydra/deploy
+++ b/share/hydra/deploy
@@ -139,9 +139,9 @@ for node in $NODES; do
exit 1
fi
- if [ "\$(facter fqdn)" != "$FQDN" ]; then
+ if [ "\$(hostname)" != "$FQDN" ]; then
echo "FQDN does not match:"
- echo "Remote presents itself as \$(facter fqdn) instead of $FQDN"
+ echo "Remote presents itself as \$(hostname) instead of $FQDN"
exit 1
fi