From: Moritz Bunkus Date: Wed, 16 Dec 2015 13:36:26 +0000 (+0100) Subject: Task-Server: nicht starten, solange Auth-DB-Upgrades eingespielt werden müssen X-Git-Tag: release-3.4.1~508 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=076728675218b25f451543caa69346d79809eb2e;p=kivitendo-erp.git Task-Server: nicht starten, solange Auth-DB-Upgrades eingespielt werden müssen --- diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 1bcb719c9..1de0a6761 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -32,6 +32,7 @@ use File::Spec; use List::Util qw(first); use POSIX qw(setuid setgid); use SL::Auth; +use SL::DBUpgrade2; use SL::DB::AuthClient; use SL::DB::BackgroundJob; use SL::BackgroundJob::ALL; @@ -210,6 +211,18 @@ EOT exit 2; } + initialize_kivitendo(); + + my $dbupdater_auth = SL::DBUpgrade2->new(form => $::form, auth => 1)->parse_dbupdate_controls; + if ($dbupdater_auth->unapplied_upgrade_scripts($::auth->dbconnect)) { + print STDERR <