Module: check_mk
Branch: master
Commit: 3987b6d251155bcfd8e5a4e675d93f72f0430360
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3987b6d251155b…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Apr 13 13:01:29 2018 +0200
Fixed typo
Change-Id: Ifd426533a2e501a150c3f5001557321e0e8bab72
---
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 9e56e7d..75b8219 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