summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-08-07 15:06:55 -0700
committerIvan Kohler <ivan@freeside.biz>2014-08-07 15:06:55 -0700
commit4ef0b959f263b506ee1a0d06e69040d7f30a471a (patch)
tree455f7ffb056acb00c2befceafd70fcf7abacf109 /bin
parent29620c88292178979a0ebf1827caf14b3d471536 (diff)
fix aradial usage import (Net::SFTP::Foreign and cachedir), RT#29053
Diffstat (limited to 'bin')
-rwxr-xr-xbin/aradial-sftp_and_import3
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;