aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-07 16:12:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-07 16:12:53 -0200
commita628ce8d831edf9181e8f71b88426e968cfb90cf (patch)
tree0d2e2f6381afb2f7942c17c35089aabfba3d4d82 /lib
parent2d988f6b6841460aa34657d1cde64c80954822d5 (diff)
downloadhydra-a628ce8d831edf9181e8f71b88426e968cfb90cf.tar.gz
hydra-a628ce8d831edf9181e8f71b88426e968cfb90cf.tar.bz2
Deploy: check for etc/hostname when running against a folder
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/deploy3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hydra/deploy b/lib/hydra/deploy
index 001c92f..cd8483c 100644
--- a/lib/hydra/deploy
+++ b/lib/hydra/deploy
@@ -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