From: Moritz Bunkus Date: Thu, 30 Aug 2012 07:59:39 +0000 (+0200) Subject: Task-Server: vor jedem Job in kivitendo-Verzeichnis wechseln X-Git-Tag: release-3.0.0beta1~264^2~2 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=22e5a8bb243f6d390940450d2ea21d2ff47cfadc;p=kivitendo-erp.git Task-Server: vor jedem Job in kivitendo-Verzeichnis wechseln --- 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; }