From 22e5a8bb243f6d390940450d2ea21d2ff47cfadc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 30 Aug 2012 09:59:39 +0200 Subject: [PATCH] Task-Server: vor jedem Job in kivitendo-Verzeichnis wechseln --- scripts/task_server.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/task_server.pl b/scripts/task_server.pl index 2ad2f2d85..513fa98a1 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -2,9 +2,11 @@ use strict; +my $exe_dir; + BEGIN { use SL::System::Process; - my $exe_dir = SL::System::Process::exe_dir; + $exe_dir = SL::System::Process::exe_dir; unshift @INC, "${exe_dir}/modules/override"; # Use our own versions of various modules (e.g. YAML). push @INC, "${exe_dir}/modules/fallback"; # Only use our own versions of modules if there's no system version. @@ -112,6 +114,8 @@ sub gd_run { $::locale = Locale->new($::lx_office_conf{system}->{language}); $::form = Form->new; + chdir $exe_dir; + $job->run; } -- 2.20.1