CVS: ispman/lib/ISPMan DomainMan.pm,1.51,1.52

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

Modified Files:
	DomainMan.pm 
Log Message:
Fixed bug #520706 (no ModifyVirtualHost for new replicas)


Index: DomainMan.pm
===================================================================
RCS file: /cvsroot/ispman/ispman/lib/ISPMan/DomainMan.pm,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -r1.51 -r1.52
*** DomainMan.pm	8 Jan 2004 00:35:49 -0000	1.51
--- DomainMan.pm	8 Jan 2004 09:59:39 -0000	1.52
***************
*** 245,248 ****
--- 245,255 ----
        # Add entry for canonical map
        $self->addDomainSMTPProcess($r->param("ispmanDomain"), "AddCanonicalMapEntry", $r->param("ispmanReplicaMaster"));
+ 
+       # Update ServerAliases for vhosts of MasterDomain
+       my $vhosts=$self->getApacheVhosts($r->param("ispmanReplicaMaster"));
+       for my $vhost(keys %$vhosts) {
+          $self->addVhostProcess($r->param("ispmanReplicaMaster"), $vhost, "ModifyVirtualHost", $vhost);
+       }
+ 
     } else {
        # Create directories for this domain
***************
*** 250,255 ****
        # It will add it to host or group
        $self->addDomainFileServerProcess($r->param("ispmanDomain"), "createDomainDirectories");
-       # old code to create homedirectory on group
-       # $self->addProcessToGroup($r->param("ispmanDomain"), "fileservergroup", "createDomainDirectories");
     }
     
--- 257,260 ----



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
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.