On Mon, 3 Aug 2015, Gianfranco Costamagna wrote:

> what about adding a cut -d " " -f 1?

This probably works… but I’d either do something like:

mailname=$(hostname -f 2>/dev/null || hostname -A)
echo ${mailname%% *} >…/etc/mailname

Or, even better maybe, copy the /etc/mailname file from outside.

That being said, with USENETWORK=no, it shouldn’t even need one…

bye,
//mirabilos
-- 
tarent solutions GmbH
Rochusstraße 2-4, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 54881-393 • Fax: +49 228 54881-235
HRB 5168 (AG Bonn) • USt-ID (VAT): DE122264941
Geschäftsführer: Dr. Stefan Barth, Kai Ebenrett, Boris Esser, Alexander Steeg


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to