projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29620c8
)
fix aradial usage import (Net::SFTP::Foreign and cachedir), RT#29053
author
Ivan Kohler
<ivan@freeside.biz>
Thu, 7 Aug 2014 22:06:55 +0000
(15:06 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Thu, 7 Aug 2014 22:06:55 +0000
(15:06 -0700)
bin/aradial-sftp_and_import
patch
|
blob
|
history
diff --git
a/bin/aradial-sftp_and_import
b/bin/aradial-sftp_and_import
index
e6af710
..
1306712
100755
(executable)
--- 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 Getopt::Std;
use Text::CSV_XS;
use DBI;
+use Net::SFTP::Foreign;
#use FS::UID qw( adminsuidsetup datasrc );
our %aradial2db = (
#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';
# %%%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;
mkdir $cachedir unless -d $cachedir;
my $servername = shift or die &usage;