]> gitweb.fluxo.info Git - hydra.git/commitdiff
Deploy: use hostname cmd instead of facter
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 12 Dec 2017 20:18:01 +0000 (18:18 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 12 Dec 2017 20:18:01 +0000 (18:18 -0200)
share/hydra/deploy

index 4b075129ad81c70843b5bbb7688b7ff560b70ecb..093b72387420b9bacc11dbe965de2bb66d34ce49 100755 (executable)
@@ -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