diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 16:12:53 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-11-07 16:12:53 -0200 |
commit | a628ce8d831edf9181e8f71b88426e968cfb90cf (patch) | |
tree | 0d2e2f6381afb2f7942c17c35089aabfba3d4d82 /lib | |
parent | 2d988f6b6841460aa34657d1cde64c80954822d5 (diff) | |
download | hydra-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/deploy | 3 |
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 |