diff options
-rw-r--r-- | THANKS.in | 1 | ||||
-rwxr-xr-x | plugins-scripts/check_oracle.sh | 8 |
2 files changed, 6 insertions, 3 deletions
@@ -220,3 +220,4 @@ Matthias Flacke | |||
220 | Emil Michles | 220 | Emil Michles |
221 | Ask Bjoern Hansen | 221 | Ask Bjoern Hansen |
222 | Enrico Scholz | 222 | Enrico Scholz |
223 | Jason Martin | ||
diff --git a/plugins-scripts/check_oracle.sh b/plugins-scripts/check_oracle.sh index 02ca1114..56962e37 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 | ||
121 | if [ -z "$ORACLE_HOME" -o ! -d "$ORACLE_HOME" ] ; then | 121 | if [ "$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 | ||
124 | fi | 126 | fi |
125 | PATH=$PATH:$ORACLE_HOME/bin | 127 | PATH=$PATH:$ORACLE_HOME/bin |
126 | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib | 128 | LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib |