CVS: ispman/bin ispman.ldap2apache,1.4,1.5 ispman.makeDomainDirectories,1.3,1.4 ispman.ldap2named,1.6,1.7

Atif Ghaffar <[email protected]>
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/bin
In directory sc8-pr-cvs1:/tmp/cvs-serv15466

Modified Files:
	ispman.ldap2apache ispman.makeDomainDirectories 
	ispman.ldap2named 
Log Message:
adding a dummy log_message function. These files call .lib files to do the task that ispman-agent does. The sub log_message in ispman-agent is different than the one here.

Index: ispman.ldap2apache
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.ldap2apache,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** ispman.ldap2apache	5 Jun 2002 17:46:53 -0000	1.4
--- ispman.ldap2apache	7 Oct 2003 15:09:52 -0000	1.5
***************
*** 18,22 ****
  
  use Sys::Hostname;
- use lib qw(%%installDir%%/lib);
  use ISPMan;
  use File::Path;
--- 18,21 ----
***************
*** 24,27 ****
--- 23,35 ----
  use Fcntl;
  use POSIX qw(tmpnam);                                                    
+  
+ # defind log_message. 
+ # This is defined in ispman-agent and we should redefine here
+ sub log_message {
+     my $message = join ' ' , @_;
+     chomp ($message);
+     print "$message\n";
+ }
+ 
   
  $ispman=ISPMan->new();

Index: ispman.makeDomainDirectories
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.makeDomainDirectories,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** ispman.makeDomainDirectories	8 May 2003 13:20:12 -0000	1.3
--- ispman.makeDomainDirectories	7 Oct 2003 15:09:53 -0000	1.4
***************
*** 18,21 ****
--- 18,30 ----
  $ispman=ISPMan->new();
  
+ # defind log_message. 
+ # This is defined in ispman-agent and we should redefine here
+ sub log_message {
+     my $message = join ' ' , @_;
+     chomp ($message);
+     print "$message\n";
+ }
+ 
+ 
  require "create_domain_directories.lib";
  require "create_vhost_directories.lib";

Index: ispman.ldap2named
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman.ldap2named,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** ispman.ldap2named	25 Jun 2003 21:23:07 -0000	1.6
--- ispman.ldap2named	7 Oct 2003 15:09:53 -0000	1.7
***************
*** 11,15 ****
     if ($opts{'h'}) {
        print "$0 -d debugLevel[1|2|3] [-a]\n";
!       print "\t-a\tMake zone files for all domains and not just the ones where smtpHost is this host\n";
        print "\n";
        exit;
--- 11,15 ----
     if ($opts{'h'}) {
        print "$0 -d debugLevel[1|2|3] [-a]\n";
!       print "\t-a\tMake postfix maps for all domains and not just the ones where smtpHost is this host\n";
        print "\n";
        exit;
***************
*** 18,25 ****
  
  use Sys::Hostname;
- use lib qw(%%installDir%%/lib);
  use File::Path;
  
  use ISPMan;
  
  $ispman=ISPMan->new();
--- 18,35 ----
  
  use Sys::Hostname;
  use File::Path;
  
  use ISPMan;
+ 
+ 
+ # defind log_message. 
+ # This is defined in ispman-agent and we should redefine here
+ sub log_message {
+     my $message = join ' ' , @_;
+     chomp ($message);
+     print "$message\n";
+ }
+ 
+ 
  
  $ispman=ISPMan->new();



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
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.