X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fapache.export;h=da2d73c1cfe6e6bc98e4dbbaa1d43593751fad38;hb=30ce495385b09bd342eee1650f48321892c40fe6;hp=d1ee9e78c2cf3d63be957dcd738310f8b6f9c5c1;hpb=9071929765c4b63a600c95bb2c2a2c7851a41377;p=freeside.git diff --git a/bin/apache.export b/bin/apache.export index d1ee9e78c..da2d73c1c 100755 --- a/bin/apache.export +++ b/bin/apache.export @@ -45,10 +45,16 @@ foreach my $export ( @exports ) { 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};