Module: check_mk
Branch: master
Commit: 8ea044b63a29c2ba47f472b6cff0eaa4048a5f82
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8ea044b63a29c2…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri May 18 08:08:41 2018 +0200
Fixed wrong find and replace syntax
Change-Id: Ib85a712bfb32c471cd735755b7ad975f02681e03
---
agents/plugins/mk_oracle | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/plugins/mk_oracle b/agents/plugins/mk_oracle
index 75b8219..9e56e7d 100755
--- a/agents/plugins/mk_oracle
+++ b/agents/plugins/mk_oracle
@@ -807,7 +807,7 @@ set_oraenv () {
ORACLE_HOME=$(grep "^${ORACLE_SID}:" <"${ORATAB}" | cut
-d":" -f2)
if [ -z "${ORACLE_HOME}" ]; then
# cut last number from SID for Oracle RAC to find entry in oratab
- ORACLE_SID_SHORT=${ORACLE_SID%/[0-9]/}
+ ORACLE_SID_SHORT=${ORACLE_SID/%[0-9]/}
ORACLE_HOME=$(grep "^${ORACLE_SID_SHORT}:"
<"${ORATAB}" | cut -d":" -f2)
fi
fi