X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ffb7da30ec503c647ae493ba8ffd48cc43fa44e7..67089fda948079650aab17c8aac9cda29f99b579:/SL/Helper/MT940.pm diff --git a/SL/Helper/MT940.pm b/SL/Helper/MT940.pm index 34b08c165..c25fd5962 100644 --- a/SL/Helper/MT940.pm +++ b/SL/Helper/MT940.pm @@ -15,9 +15,15 @@ sub convert_mt940_data { $sfile->fh->print($mt940_data); $sfile->fh->close; + # create needed dir structure for aqbanking 5.x and 6.x my $todir = $sfile->get_path . '/imexporters/csv/profiles'; mkpath $todir; + die "Cannot create $todir" unless -d $todir; + File::Copy::copy('users/aqbanking.conf', $todir.'/kivi.conf'); + die "Cannot create local aqbanking conf " unless -f $todir.'/kivi.conf'; + + mkpath $sfile->get_path . '/settings6/aqbanking'; my $aqbin = $::lx_office_conf{applications}->{aqbanking}; die "Can't find aqbanking-cli, please check your configuration file.\n" unless -f $aqbin;