ispman/bin ispman-agent,1.60,1.61

Joerg Delker <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28060/bin

Modified Files:
	ispman-agent 
Log Message:
changing method for hostname aliases retrieval from $Config->{'hostnames'} to ldap config data

Index: ispman-agent
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman-agent,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -d -r1.60 -r1.61
--- ispman-agent	21 Feb 2004 21:31:24 -0000	1.60
+++ ispman-agent	30 May 2004 19:50:46 -0000	1.61
@@ -67,9 +67,6 @@
 # will find
 # Use the script ispman.myhostname to see how ispman-agent will see the hostname
 
--WI0L6dQK/[email protected]=split(/\s*,\s*/, $Config->{'hostnames'});
-push @hostnames, $hostname;
-
 my $pid_file = ($Config->{"pid_file"}=~/\S/)?  $Config->{"pid_file"} : join "/", ($Config->{"installDir"}, "var/$hostname.ispman-agent.pid");
 my $log_file = ($Config->{"log_file"}=~/\S/)?  $Config->{"log_file"} : join "/", ($Config->{"installDir"}, "var/$hostname.ispman-agent.log");
 
@@ -190,6 +187,10 @@
 $namedPriDir		=~ s!//!/!g;
 $namedSecDir		=~ s!//!/!g;
 
+# get all host aliases
+-WI0L6dQK/[email protected]=$ispman->as_array($ispman->getHostInfo($hostname)->{'ispmanHostAlias'});
+push @hostnames,$hostname;
+
 # Stanislav Sinyagin <ssinyagin-/[email protected]>
 # Jobs are ordered by priority. #1 goes first.
 # Default priority is 100.



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.