forked from sni/thruk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0004-thruk_data_scripts.patch
26 lines (24 loc) · 1.02 KB
/
0004-thruk_data_scripts.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- a/script/thruk_fastcgi.pl 2012-03-05 11:14:09.710307837 +0100
+++ b/script/thruk_fastcgi.pl 2012-03-05 11:17:30.835302404 +0100
@@ -3,6 +3,9 @@
use strict;
use warnings;
+use lib '@THRUKLIBS@';
+use lib '@DATADIR@/lib';
+
###################################################
# create connection pool
# has to be done really early to save memory
--- a/thruk_auth 2014-01-30 11:36:54.000000000 +0100
+++ b/thruk_auth 2014-01-30 11:37:01.000000000 +0100
@@ -12,8 +12,9 @@
export PERL5LIB=$OMD_ROOT/share/thruk/lib:$PERL5LIB
if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG="$OMD_ROOT/etc/thruk"; fi
else
- export PERL5LIB=$PERL5LIB:/usr/share/thruk/lib:/usr/lib/thruk/perl5;
- if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG='/etc/thruk'; fi
+ export PERL5LIB=$PERL5LIB:@DATADIR@/lib:@THRUKLIBS@;
+ if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG='@SYSCONFDIR@'; fi
+ if [ -z $REMOTEURL ]; then export REMOTEURL='http://localhost@HTMLURL@/cgi-bin/remote.cgi'; fi
fi
eval 'exec perl -x $0 ${1+"$@"} ;'