From c2087b165bd0fdc6511df4c874390359b290b8bf Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Mon, 3 Aug 2015 11:15:11 +0200 Subject: Use a hostname -A as fallback in case of -f fails (Closes: #637627) thanks for the help --- pbuilder-modules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pbuilder-modules') diff --git a/pbuilder-modules b/pbuilder-modules index f28b2db..7568176 100644 --- a/pbuilder-modules +++ b/pbuilder-modules @@ -482,7 +482,7 @@ function extractbuildplace () { exit 1 fi log "I: creating local configuration" - hostname -f > "$BUILDPLACE/etc/mailname" + hostname -f || hostname -A > "$BUILDPLACE/etc/mailname" fi copy_local_configuration -- cgit v1.2.3