From 67089fda948079650aab17c8aac9cda29f99b579 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 25 Aug 2020 18:20:50 +0200 Subject: [PATCH] =?utf8?q?aqbanking=206.x=20ben=C3=B6tigt=20weitere=20Unte?= =?utf8?q?rordner?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Durch die verkettung der Systemaufrufe kann der MT940 Import aktuell erst beim zweiten Aufruf ausgeführt werden (ubuntu 20.04) Das Anlegen der Unterordner umgeht diese Eigenschaft --- SL/Helper/MT940.pm | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.20.1