From 076728675218b25f451543caa69346d79809eb2e Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 16 Dec 2015 14:36:26 +0100 Subject: [PATCH] =?utf8?q?Task-Server:=20nicht=20starten,=20solange=20Auth?= =?utf8?q?-DB-Upgrades=20eingespielt=20werden=20m=C3=BCssen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- scripts/task_server.pl | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 <