summaryrefslogtreecommitdiff
path: root/bin/bsdshell.export
diff options
context:
space:
mode:
Diffstat (limited to 'bin/bsdshell.export')
-rwxr-xr-xbin/bsdshell.export7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/bsdshell.export b/bin/bsdshell.export
index 10c2767..6e0d103 100755
--- a/bin/bsdshell.export
+++ b/bin/bsdshell.export
@@ -43,12 +43,7 @@ foreach my $export ( @bsd_exports ) {
chmod 0644, "$prefix/passwd";
chmod 0600, "$prefix/master.passwd";
- #false laziness with freeside-sqlradius-reset and bind.export
- my @svc_acct =
- map { qsearchs('svc_acct', { 'svcnum' => $_->svcnum } ) }
- map { qsearch('cust_svc', { 'svcpart' => $_->svcpart } ) }
- grep { qsearch('cust_svc', { 'svcpart' => $_->svcpart } ) }
- $export->export_svc;
+ my @svc_acct = $export->svc_x;
next unless @svc_acct;