[freeside-devel] Possible Changes to svc_www.cgi and svc_www.pm

ivan ivan at 420.am
Sat Jun 22 18:40:21 PDT 2002


Thanks for the patches; applied.

On Sat, Jun 22, 2002 at 09:20:59PM -0400, Stephen Bechard wrote:
> 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...

If you mean editing the DNS/zone data, there's already
(import from/export to) BIND and a web editor for the zone files.
svc_www is intended for website hosting with Apache or whatnot.  I could
totally see some amount of automatic zone provisioning for websites,
though.

-- 
_ivan



On Sat, Jun 22, 2002 at 09:20:59PM -0400, Stephen Bechard wrote:
> 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
> 
> 

-- 
_ivan



More information about the freeside-devel mailing list