1
diff -ruN cluster-agents-3.9.2.old//heartbeat/SAPDatabase cluster-agents-3.9.2/heartbeat/SAPDatabase
2
--- cluster-agents-3.9.2.old//heartbeat/SAPDatabase 2011-06-29 12:51:48.000000000 +0000
3
+++ cluster-agents-3.9.2/heartbeat/SAPDatabase 2011-08-24 09:43:15.215463955 +0000
7
# as root user we need the library path to the SAP kernel to be able to call executables
8
-if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
9
- LD_LIBRARY_PATH=$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
10
+if [ "$DIR_EXECUTABLE" ]; then
11
+ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
12
+ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
13
+ export LD_LIBRARY_PATH
15
export LD_LIBRARY_PATH
17
sidadm="`echo $SID | tr '[:upper:]' '[:lower:]'`adm"
18
diff -ruN cluster-agents-3.9.2.old//heartbeat/SAPInstance cluster-agents-3.9.2/heartbeat/SAPInstance
19
--- cluster-agents-3.9.2.old//heartbeat/SAPInstance 2011-06-29 12:51:48.000000000 +0000
20
+++ cluster-agents-3.9.2/heartbeat/SAPInstance 2011-08-24 09:43:07.724822028 +0000
24
# as root user we need the library path to the SAP kernel to be able to call sapcontrol
25
- if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
26
- LD_LIBRARY_PATH=$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
27
+ if [ "$DIR_EXECUTABLE" ]; then
28
+ if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
29
+ LD_LIBRARY_PATH="$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
30
+ export LD_LIBRARY_PATH
32
export LD_LIBRARY_PATH