[freeside-commits] freeside/bin apache.export,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Fri Jul 20 12:58:36 PDT 2007
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv19384
Modified Files:
apache.export
Log Message:
apache export: don't bomb out when svc_www records aren't associated with an svc_acct, just leave those subsitution vars blank
Index: apache.export
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/apache.export,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- apache.export 12 Jul 2007 21:41:09 -0000 1.8
+++ apache.export 20 Jul 2007 19:58:34 -0000 1.9
@@ -45,10 +45,16 @@
foreach my $svc_www ( @svc_www ) {
use vars qw($zone $username $dir $email $config);
$zone = $svc_www->domain_record->zone;
- $username = $svc_www->svc_acct->username;
- $dir = $svc_www->svc_acct->dir;
- $email = $svc_www->svc_acct->email;
$config = $svc_www->config;
+ if ( $svc_www->svc_acct ) {
+ $username = $svc_www->svc_acct->username;
+ $dir = $svc_www->svc_acct->dir;
+ $email = $svc_www->svc_acct->email;
+ } else {
+ $username = '';
+ $dir = '';
+ $email = '';
+ }
warn " adding configuration section for $zone\n"
if $opt{d};
More information about the freeside-commits
mailing list