diff options
Diffstat (limited to 'bin/bsdshell.export')
| -rwxr-xr-x | bin/bsdshell.export | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/bsdshell.export b/bin/bsdshell.export index 6e0d1037e..10c27671e 100755 --- a/bin/bsdshell.export +++ b/bin/bsdshell.export @@ -43,7 +43,12 @@ foreach my $export ( @bsd_exports ) { chmod 0644, "$prefix/passwd"; chmod 0600, "$prefix/master.passwd"; - my @svc_acct = $export->svc_x; + #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; next unless @svc_acct; |
