forked from sni/thruk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path0003-thruk-scripts.patch
27 lines (25 loc) · 1.39 KB
/
0003-thruk-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
27
--- a/thruk 2013-11-29 22:09:23.165583119 +0100
+++ b/thruk 2013-12-04 00:06:39.171075669 +0100
@@ -11,8 +11,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+"$@"} ;'
--- a/naglint 2013-11-29 22:09:23.165583119 +0100
+++ b/naglint 2013-12-03 10:30:57.548100062 +0100
@@ -11,8 +11,8 @@
export PERL5LIB=$OMD_ROOT/share/thruk/lib:$OMD_ROOT/share/thruk/plugins/plugins-available/conf/lib:$PERL5LIB
if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG="$OMD_ROOT/etc/thruk"; fi
else
- export PERL5LIB=$PERL5LIB:/usr/share/thruk/lib:/usr/share/thruk/plugins/plugins-available/conf/lib:/usr/lib/thruk/perl5;
- if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG='/etc/thruk'; fi
+ export PERL5LIB=$PERL5LIB:@DATADIR@/lib:@DATADIR@/plugins/plugins-available/conf/lib:@THRUKLIBS@;
+ if [ -z $CATALYST_CONFIG ]; then export CATALYST_CONFIG='@SYSCONFDIR@'; fi
fi
eval 'exec perl -x $0 ${1+"$@"} ;'