diff options
| author | ivan <ivan> | 2003-03-29 02:35:22 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2003-03-29 02:35:22 +0000 | 
| commit | 0ac23bce2a57b22a9326488ce1e41e17d51aef1e (patch) | |
| tree | ed80e658592e583e6ef591dfda329e9bac243920 | |
| parent | 12cf2ed4326eb7f668a9d3e5269de56845429e30 (diff) | |
trim leading @. off zones
| -rw-r--r-- | FS/FS/part_export/www_shellcommands.pm | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/FS/FS/part_export/www_shellcommands.pm b/FS/FS/part_export/www_shellcommands.pm index e5b95dc1f..b3bfdfeff 100644 --- a/FS/FS/part_export/www_shellcommands.pm +++ b/FS/FS/part_export/www_shellcommands.pm @@ -30,9 +30,12 @@ sub _export_command {    }    my $domain_record = $svc_www->domain_record; # or die ?    my $zone = $domain_record->reczone; # or die ? -  unless ( $zone =~ /\.$/ ) { +  if ( $zone =~ /\.$/ ) { +    $zone =~ s/\.$//; +  } else {      my $svc_domain = $domain_record->svc_domain; # or die ?      $zone .= '.'. $svc_domain->domain; +    $zone =~ s/^\@\.//;    }    my $svc_acct = $svc_www->svc_acct; # or die ? | 
