summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_oracle.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_oracle.sh')
-rwxr-xr-xplugins-scripts/check_oracle.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh
index 02ca111..56962e3 100755
--- a/plugins-scripts/check_oracle.sh
+++ b/plugins-scripts/check_oracle.sh
@@ -118,9 +118,11 @@ fi
118# Last resort 118# Last resort
119[ -z "$ORACLE_HOME" -a -d $PROGPATH/oracle ] && ORACLE_HOME=$PROGPATH/oracle 119[ -z "$ORACLE_HOME" -a -d $PROGPATH/oracle ] && ORACLE_HOME=$PROGPATH/oracle
120 120
121if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then 121if [ "$cmd" != "--db" ]; then
122 echo "Cannot determine ORACLE_HOME for sid $2" 122 if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then
123 exit $STATE_UNKNOWN 123 echo "Cannot determine ORACLE_HOME for sid $2"
124 exit $STATE_UNKNOWN
125 fi
124fi 126fi
125PATH=$PATH:$ORACLE_HOME/bin 127PATH=$PATH:$ORACLE_HOME/bin
126LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib 128LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib