X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=bin%2Fshell.export;h=146a0fd4e16548e71a401e471433280ec56911c0;hb=5bfc7cd4f5aac2905119ba076a23df1f13b58f7b;hp=29b639058d23210c786695c869c805dd1f3de63a;hpb=50839c50d9ed12336cfc611775088347bccd62f0;p=freeside.git diff --git a/bin/shell.export b/bin/shell.export index 29b639058..146a0fd4e 100755 --- a/bin/shell.export +++ b/bin/shell.export @@ -8,6 +8,8 @@ use Net::SSH qw(ssh); use FS::UID qw(adminsuidsetup datasrc); use FS::Record qw(qsearch qsearchs); use FS::part_export; +use FS::cust_svc; +use FS::svc_acct; my @saltset = ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' ); @@ -52,6 +54,8 @@ foreach my $export ( @bsd_exports ) { grep { qsearch('cust_svc', { 'svcpart' => $_->svcpart } ) } $export->export_svc; + next unless @svc_acct; + foreach my $svc_acct ( sort { $a->uid <=> $b->uid } @svc_acct ) { my $password = $svc_acct->_password;