aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authorGianfranco Costamagna <costamagnagianfranco@yahoo.it>2015-08-03 11:15:11 +0200
committerGianfranco Costamagna <costamagnagianfranco@yahoo.it>2015-08-03 11:15:11 +0200
commitc2087b165bd0fdc6511df4c874390359b290b8bf (patch)
tree8ebf5105ed14840d296de99e40fdbdcee482bb63 /pbuilder-modules
parent7b9fb382211d23c087c9f7dd7fe295a46ab3fc3f (diff)
downloadpbuilder-c2087b165bd0fdc6511df4c874390359b290b8bf.tar
pbuilder-c2087b165bd0fdc6511df4c874390359b290b8bf.tar.gz
Use a hostname -A as fallback in case of -f fails (Closes: #637627)
thanks <mapreri> for the help
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules2
1 files changed, 1 insertions, 1 deletions
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