ispman/bin ispman-agent,1.67,1.68
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.sourceforge.net:/tmp/cvs-serv31712
Modified Files:
ispman-agent
Log Message:
Clean agent. All tasks are outside. Now this file can stay without much changes and can be improved if needed
Index: ispman-agent
===================================================================
RCS file: /cvsroot/ispman/ispman/bin/ispman-agent,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- ispman-agent 30 Dec 2004 17:02:33 -0000 1.67
+++ ispman-agent 30 Dec 2004 17:16:28 -0000 1.68
@@ -161,20 +161,6 @@
$agentFrequency = $ispman->getConf("agentFrequency") || 1;
$ldapBaseDN = $ispman->getConf('ldapBaseDN');
-$namedConfFile = $ispman->getConf('namedConfFile');
-$namedConfHeaderFile = $ispman->getConf('namedConfHeaderFile');
-$namedConfFooterFile = $ispman->getConf('namedConfFooterFile');
-
-$namedDir = join "/",
- ( $ispman->getConf('namedDir'), $ispman->getConf('namedIspmanSubDir') );
-$namedRevDir = join "/", ( $namedDir, $ispman->getConf('namedRevDir') );
-$namedPriDir = join "/", ( $namedDir, $ispman->getConf('namedPriDir') );
-$namedSecDir = join "/", ( $namedDir, $ispman->getConf('namedSecDir') );
-
-$namedDir =~ s!//!/!g;
-$namedRevDir =~ s!//!/!g;
-$namedPriDir =~ s!//!/!g;
-$namedSecDir =~ s!//!/!g;
# get all host aliases
@hostnames =
@@ -264,33 +250,8 @@
}
-sub modifyDomain {
- my $domain = shift;
- logsay("Modifying $domain");
- my $module = "$install_dir/lib/dns.lib";
- do $module;
- ### FIXME
- ### Commented out for now as this break dns, dnsHost needs to be added
- ### to objectclass=ispmanDomain first
- my $filter =
- sprintf("&(objectclass=ispmanDomain)"); #(dnsHost=%s)" , $hostname);
- &make_named_conf( $domain, $filter );
- return 1;
-}
-
-
-
-sub NotifyUsers {
- my ( $domain, $params ) = @_;
-
- my $module = "$install_dir/lib/send_email_to_domain.lib";
- do $module;
-
- &sendEmailToDomain( $ispman, $domain, $params );
- return 1;
-}
## function called by the task scripts
sub executeCommands{
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt