From: janw Date: Thu, 14 Feb 2008 12:50:58 +0000 (+0000) Subject: Corrected tag check. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=57d5594830a52de55e9528062f39019c46548166;p=gosa.git Corrected tag check. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8906 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/modules/SIPackages.pm b/gosa-si/modules/SIPackages.pm index 2dc40fffc..ef5081e34 100644 --- a/gosa-si/modules/SIPackages.pm +++ b/gosa-si/modules/SIPackages.pm @@ -61,7 +61,7 @@ $network_interface= &get_interface_for_ip($server_ip); $server_mac_address= &get_mac($network_interface); # Unit tag can be defined in config -if(not defined($gosa_unit_tag) || length($gosa_unit_tag)==0) { +if((not defined($gosa_unit_tag)) || length($gosa_unit_tag) == 0) { # Read gosaUnitTag from LDAP my $tmp_ldap= Net::LDAP->new($ldap_uri); if(defined($tmp_ldap)) { @@ -82,8 +82,12 @@ if(not defined($gosa_unit_tag) || length($gosa_unit_tag)==0) { $gosa_unit_tag= $unit_tag; } $mesg = $tmp_ldap->unbind; + } else { + &main::daemon_log("Not using gosaUnitTag",8); } } +} else { + &main::daemon_log("Using gosaUnitTag from config-file: $gosa_unit_tag",6); } # complete addresses