]> gitweb.fluxo.info Git - hydra.git/commitdiff
Deploy: check for etc/hostname when running against a folder
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 7 Nov 2017 18:12:53 +0000 (16:12 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 7 Nov 2017 18:12:53 +0000 (16:12 -0200)
lib/hydra/deploy

index 001c92f9ba16cf1556d0d08f565bdf49b21da21f..cd8483cb6ca36f5456f1b7dd7de36dce3f5fa6e0 100644 (file)
@@ -54,6 +54,9 @@ function hydra_deploy_setup {
       # Fix hostname
       if [ -s "$FOLDER/etc/hostname" ]; then
         FQDN="`cat $FOLDER/etc/hostname`"
+      else
+        echo "no hostname set at $FOLDER/etc/hostname"
+        return 1
       fi
 
       hydra_deploy_set_manifest || return 1