diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 12:02:39 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-08-07 12:02:39 -0700 |
commit | cd73071edf32a80ffd40ef08bdf7ae7a71cf5b99 (patch) | |
tree | 17fb5f3dd94b053d8238d9ece7022daa9be6ef32 /bin | |
parent | de8bd04f535315150385cffff65bc72c896792e6 (diff) |
fix aradial usage import, RT#29053
Diffstat (limited to 'bin')
-rwxr-xr-x[-rw-r--r--] | bin/aradial-sftp_and_import | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/aradial-sftp_and_import b/bin/aradial-sftp_and_import index 425fc0bf3..e6af710b9 100644..100755 --- a/bin/aradial-sftp_and_import +++ b/bin/aradial-sftp_and_import @@ -6,7 +6,7 @@ use strict; use Getopt::Std; use Text::CSV_XS; use DBI; -use FS::UID qw( adminsuidsetup datasrc ); +#use FS::UID qw( adminsuidsetup datasrc ); our %aradial2db = ( #'Date' => '', @@ -40,10 +40,11 @@ getopts('m:abr:dP:v:'); my %options = (); my $user = shift or die &usage; -adminsuidsetup $user; +#adminsuidsetup $user; -# %%%FREESIDE_CACHE%%% -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'; mkdir $cachedir unless -d $cachedir; my $servername = shift or die &usage; @@ -188,7 +189,7 @@ sub usage { "Usage: aradial-sftp_and_import [ -m method ] [ -a ] [ -b ] [ -r remotefolder ] [ -d donefolder ] [ -v level ] [ -P port ] - user [sftpuser@]servername + user [sftpuser@]servername dbi_datasrc dbi_username dbi_pass "; } |