Module: check_mk
Branch: master
Commit: f8c2d838d26a87e2c0549db20eb256cfbc48a476
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f8c2d838d26a87…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Mon May 7 18:38:41 2018 +0200
5998 FIX check_mk_agent.aix: Fixed parameter substitution for environment variables
MK_LIBDIR,MK_CONFDIR and MK_VARDIR
Change-Id: I00493dfaa97bb23e446feea85fdfb67c5adceb2b
---
.werks/5998 | 10 ++++++++++
agents/check_mk_agent.aix | 6 +++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.werks/5998 b/.werks/5998
new file mode 100644
index 0000000..3a26753
--- /dev/null
+++ b/.werks/5998
@@ -0,0 +1,10 @@
+Title: check_mk_agent.aix: Fixed parameter substitution for environment variables
MK_LIBDIR,MK_CONFDIR and MK_VARDIR
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.6.0i1
+Date: 1525711070
+Class: fix
+
+
diff --git a/agents/check_mk_agent.aix b/agents/check_mk_agent.aix
index 49959cb..9ca376e 100755
--- a/agents/check_mk_agent.aix
+++ b/agents/check_mk_agent.aix
@@ -34,9 +34,9 @@ fi
export LC_ALL=C
unset LANG
-export MK_LIBDIR=${MK_LIBDIR-/usr/check_mk/lib}
-export MK_CONFDIR=${MK_CONFDIR-/usr/check_mk/conf}
-export MK_VARDIR=${MK_VARDIR-/tmp/check_mk}
+export MK_LIBDIR=${MK_LIBDIR:-/usr/check_mk/lib}
+export MK_CONFDIR=${MK_CONFDIR:-/usr/check_mk/conf}
+export MK_VARDIR=${MK_VARDIR:-/tmp/check_mk}
# All executables in PLUGINSDIR will simply be executed and their
# ouput appended to the output of the agent. Plugins define their own