diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 15:06:57 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 15:06:57 -0700 |
commit | c6ad1f88f86e6dc8f99916f7a922ddf29c1e48bd (patch) | |
tree | 61e086ed73aec5a0253f7e50e25805234909f12f | |
parent | f5e2b6062646e5b7df6f0be4645656903d299ded (diff) |
fix aradial usage import (Net::SFTP::Foreign and cachedir), RT#29053
-rwxr-xr-x | bin/aradial-sftp_and_import | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/aradial-sftp_and_import b/bin/aradial-sftp_and_import index e6af710b9..13067123f 100755 --- a/bin/aradial-sftp_and_import +++ b/bin/aradial-sftp_and_import @@ -6,6 +6,7 @@ use strict; use Getopt::Std; use Text::CSV_XS; use DBI; +use Net::SFTP::Foreign; #use FS::UID qw( adminsuidsetup datasrc ); our %aradial2db = ( @@ -44,7 +45,7 @@ my $user = shift or die &usage; # %%%FREESIDE_CACHE%%% & hardcoded datasrc #my $cachedir = '%%%FREESIDE_CACHE%%%/cache.'. datasrc. '/cdrs'; -my $cachedir = '%%%FREESIDE_CACHE%%%/cache.DBI:Pg:dbname=freeside/cdrs'; +my $cachedir = '/usr/local/etc/freeside/cache.DBI:Pg:dbname=freeside/cdrs'; mkdir $cachedir unless -d $cachedir; my $servername = shift or die &usage; |