Possible Changes to svc_www.cgi and svc_www.pm

Stephen Bechard steve at destek.net
Sat Jun 22 18:22:10 PDT 2002


I have been trying to get the svc_www.cgi working for quite some time
and I finally realized that it was only missing a closing %>

*** /tarballs/freeside-1.4.0pre14/httemplate/edit/svc_www.cgi Mon Feb 18
05:14:00 2002
--- /home/freeside/website/aspdocs/edit/svc_www.cgi     Sat Jun 22 21:12:21
2002
***************
*** 175,179 ****
    </BODY>
  </HTML>
  END
!
!
--- 175,178 ----
    </BODY>
  </HTML>
  END
! %>

Now that I have the svc_www.cgi working I was playing with
provisioning websites based on the A records that I had
entered into my domain. I noticed that if I created a site
it created all of the directories and symbolic links without
the period in-between the reczone and domain (reczonedomain.com)
If you are interested here is my fix and diff to correct this so
the outcome is reczone.domain.com

*** /tarballs/freeside-1.4.0pre14/FS/FS/svc_www.pm    Mon Feb 11 14:38:58
2002
--- /usr/local/lib/perl5/site_perl/5.005/FS/svc_www.pm  Sat Jun 22 20:54:32
2002
***************
*** 154,160 ****
      my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $dom_svcnum } );
        # or die ?
!     $zone .= $svc_domain->domain;
    }

--- 154,160 ----
      my $svc_domain = qsearchs('svc_domain', { 'svcnum' => $dom_svcnum } );
        # or die ?
!     $zone = "$zone.". $svc_domain->domain;
    }

I am now going to work some scripts that will allow the options of
editing/modifing the reczone with the posibility to delete it as well.
Unless you know of someone else that is doing this...

Enjoy,
Steve





More information about the freeside-devel mailing list