From e1097202f3593c98f3c9fdd3c31380b79d98bf58 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Tue, 28 Oct 2014 16:08:07 +0100 Subject: [PATCH] Fallback hostname to localhost. --- debian/config | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/debian/config b/debian/config index bd7a5fc..eb026c6 100644 --- a/debian/config +++ b/debian/config @@ -5,6 +5,10 @@ set -e # Guess default hostname HOST=$( hostname -f || true ) +if [ -z "$HOST" ]; then + HOST=localhost +fi + db_get bacula-cn/hostname || true if [ -z "$RET" ]; then db_set bacula-cn/hostname "$HOST" -- 1.7.10.4