projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ab4055
)
Task-Server: vor jedem Job in kivitendo-Verzeichnis wechseln
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 30 Aug 2012 07:59:39 +0000
(09:59 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Thu, 30 Aug 2012 07:59:39 +0000
(09:59 +0200)
scripts/task_server.pl
patch
|
blob
|
history
diff --git
a/scripts/task_server.pl
b/scripts/task_server.pl
index
2ad2f2d
..
513fa98
100755
(executable)
--- 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;
}