From: Valentin Vidic Date: Tue, 28 Oct 2014 15:01:50 +0000 (+0100) Subject: Try to get hostname. X-Git-Tag: debian/20141028~2 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=6684c583b325d3f81d41a0a34f31b9544be6c295;p=bacula-cn.git Try to get hostname. --- diff --git a/debian/config b/debian/config index 73c4f4c..bd7a5fc 100644 --- a/debian/config +++ b/debian/config @@ -4,7 +4,7 @@ set -e . /usr/share/debconf/confmodule # Guess default hostname -HOST=$( hostname -f ) +HOST=$( hostname -f || true ) db_get bacula-cn/hostname || true if [ -z "$RET" ]; then db_set bacula-cn/hostname "$HOST"