From: rettenbe Date: Thu, 28 Aug 2008 15:23:04 +0000 (+0000) Subject: bugfix: client complaining now if no si-servers found in dns or config file X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cf80480abe499cc7bc1a79ac3b8153b5d174f4c5;p=gosa.git bugfix: client complaining now if no si-servers found in dns or config file git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12306 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 3fa4e0dab..767446c77 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -1139,7 +1139,7 @@ my $server_check = (defined($server_check_cfg))?$server_check_cfg->val( "server" if( defined $server_check ) { unshift(@servers, $server_address); my $servers_string = join(", ", @servers); - daemon_log("INFO: found servers in configuration file: $servers_string", 5); + daemon_log("INFO: found servers in configuration file: $servers_string", 1); } else { my @tmp_servers; if ( !$server_domain) { @@ -1153,7 +1153,7 @@ if( defined $server_check ) { } } } - if(@tmp_servers && length(@tmp_servers)==0) { + if (0 == @tmp_servers) { daemon_log("ERROR: please specify a gosa-si-server address or a domain in config file", 1); kill 2, $$; } @@ -1170,7 +1170,7 @@ if( defined $server_check ) { unshift(@servers, $server); } my $servers_string = join(", ", @servers); - daemon_log("INFO: found servers in DNS: $servers_string", 5); + daemon_log("INFO: found servers in DNS: $servers_string", 1); }