[yast-devel] [PATCH yast-mail] Use /etc/hostname instead of /etc/HOSTNAME
--- src/YaPI/MailServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YaPI/MailServer.pm b/src/YaPI/MailServer.pm index 2051480..005cd5d 100644 --- a/src/YaPI/MailServer.pm +++ b/src/YaPI/MailServer.pm @@ -2387,7 +2387,7 @@ sub WriteMailLocalDomains { my $host = `hostname -f`; chomp $host; if( ! $host ) { - $host = `cat /etc/HOSTNAME`; chomp $host; + $host = `cat /etc/hostname`; chomp $host; if( ! $host ) { $host = 'linux.lokal'; @@ -2983,7 +2983,7 @@ sub activate_virus_scanner { my $mydomain = `hostname -d`; chomp $mydomain; if( ! $myhostname ) { - $myhostname = `cat /etc/HOSTNAME`; chomp $myhostname; + $myhostname = `cat /etc/hostname`; chomp $myhostname; if( ! $myhostname ) { $myhostname = 'linux.lokal'; -- 1.8.2.3 -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
On 05/19/2013 11:19 PM, Cristian Rodríguez wrote:
--- src/YaPI/MailServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/YaPI/MailServer.pm b/src/YaPI/MailServer.pm index 2051480..005cd5d 100644 --- a/src/YaPI/MailServer.pm +++ b/src/YaPI/MailServer.pm @@ -2387,7 +2387,7 @@ sub WriteMailLocalDomains { my $host = `hostname -f`; chomp $host; if( ! $host ) { - $host = `cat /etc/HOSTNAME`; chomp $host; + $host = `cat /etc/hostname`; chomp $host;
Please use Hostname.ycp from yast2.rpm instead The original solution used here is wrong
if( ! $host ) { $host = 'linux.lokal'; @@ -2983,7 +2983,7 @@ sub activate_virus_scanner { my $mydomain = `hostname -d`; chomp $mydomain; if( ! $myhostname ) { - $myhostname = `cat /etc/HOSTNAME`; chomp $myhostname; + $myhostname = `cat /etc/hostname`; chomp $myhostname;
The same as above
if( ! $myhostname ) { $myhostname = 'linux.lokal';
Seems like code for removal -- Lukas Ocilka, Cloud & Systems Management Department SUSE LINUX s.r.o., Praha -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org
participants (2)
-
Cristian Rodríguez
-
Lukas Ocilka