From d5255946196a0ed6c04a8cfb59d495ab8041e955 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 10 May 2013 20:42:48 +0200 Subject: [PATCH] make dist_recursor happy on a system without git and a resolvable hostname --- pdns/dist-recursor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dist-recursor b/pdns/dist-recursor index 8222263bde..403aea601f 100755 --- a/pdns/dist-recursor +++ b/pdns/dist-recursor @@ -10,13 +10,13 @@ DIST_HOST="" ## End patch area. if [ -z "$VERSION" ]; then - VERSION=$(git describe --always --dirty=+ 2>/dev/null) + VERSION=$(git describe --always --dirty=+ 2>/dev/null || true) if [ -z "$VERSION" ]; then VERSION="UNKNOWN" else VERSION="git-"$VERSION fi - DIST_HOST="$(id -u -n)@$(hostname -f)" + DIST_HOST="$(id -u -n)@$(hostname -f || hostname)" fi INCLUDES="iputils.hh arguments.hh base64.hh zoneparser-tng.hh \ -- 2.47.2