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: [email protected]
To contact the owner, e-mail: [email protected]