From aab7a63f5afd632c2cdfaa63b112e57ad785fcc4 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 27 Oct 2007 23:43:31 +0200 Subject: [PATCH] grml-hostname: adjust /etc/mailname as well --- debian/changelog | 6 ++++++ usr_sbin/grml-hostname | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index d47942a..58accc9 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grml-scripts (1.0.20) unstable; urgency=low + + * grml-hostname: adjust /etc/mailname as well + + -- Michael Prokop Sat, 27 Oct 2007 23:43:17 +0200 + grml-scripts (1.0.19) unstable; urgency=low * grml2ram: adjust for usage with new live-initramfs layout. diff --git a/usr_sbin/grml-hostname b/usr_sbin/grml-hostname index c844a44..cc429cd 100755 --- a/usr_sbin/grml-hostname +++ b/usr_sbin/grml-hostname @@ -4,7 +4,7 @@ # Authors: (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Die Feb 13 12:16:57 CET 2007 [mika] +# Latest change: Sam Okt 27 23:43:06 CEST 2007 [mika] ################################################################################ source /etc/grml/script-functions @@ -39,6 +39,7 @@ fi case $retval in 0) echo "$HOSTNAME" > /etc/hostname + echo "$HOSTNAME" > /etc/mailname sed -i "s/^127.0.0.1[ \t]*$OLDHOSTNAME[ \t]*localhost/127.0.0.1 $HOSTNAME localhost/" /etc/hosts sed -i "s/^::1[ \t]*ip6-localhost ip6-loopback[ \t]*$OLDHOSTNAME/::1 ip6-localhost ip6-loopback $HOSTNAME/" /etc/hosts POSTFIX='' -- 2.1.4