Skip to content

Commit

Permalink
resource-agents: Improve LD_LIBRARY_PATH handling by SAP*
Browse files Browse the repository at this point in the history
This is a backport from the Heartbeat resource agents repository.
Author: Dejan Muhamedagic (dejan at hello-penguin com)

http://hg.linux-ha.org/agents/rev/2773e5850003

Signed-off-by: Lon Hohberger <lhh@redhat.com>
  • Loading branch information
lhh committed Jan 25, 2011
1 parent 9478573 commit 394c23c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion rgmanager/src/resources/SAPDatabase
Expand Up @@ -993,7 +993,8 @@ fi

# as root user we need the library path to the SAP kernel to be able to call executables
if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi
sidadm="`echo $SID | tr [:upper:] [:lower:]`adm"

Expand Down
3 changes: 2 additions & 1 deletion rgmanager/src/resources/SAPInstance
Expand Up @@ -566,7 +566,8 @@ fi

# as root user we need the library path to the SAP kernel to be able to call sapcontrol
if [ `echo $LD_LIBRARY_PATH | grep -c "^$DIR_EXECUTABLE\>"` -eq 0 ]; then
LD_LIBRARY_PATH=$DIR_EXECUTABLE:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$DIR_EXECUTABLE${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
fi
sidadm="`echo $SID | tr [:upper:] [:lower:]`adm"

Expand Down

0 comments on commit 394c23c

Please sign in to comment.