5f4eac1478
Reported by: pkg-fallout
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
--- check_mk_agent.freebsd.orig 2020-02-05 09:13:20 UTC
|
|
+++ check_mk_agent.freebsd
|
|
@@ -41,15 +41,15 @@
|
|
export LC_ALL=C
|
|
unset LANG
|
|
|
|
-export MK_LIBDIR="/usr/local/lib/check_mk_agent"
|
|
-export MK_CONFDIR="/etc/check_mk"
|
|
-export MK_TMPDIR="/var/run/check_mk"
|
|
+export MK_LIBDIR="%%CHECKMK_LIBDIR%%"
|
|
+export MK_CONFDIR="%%CHECKMK_CONFDIR%%"
|
|
+export MK_TMPDIR="%%CHECKMK_TMPDIR%%"
|
|
|
|
# Optionally set a tempdir for all subsequent calls
|
|
#export TMPDIR=
|
|
|
|
# Make sure, locally installed binaries are found
|
|
-PATH=$PATH:/usr/local/bin:/usr/local/sbin
|
|
+PATH=$PATH:%%LOCALBASE%%/bin:%%LOCALBASE%%/sbin
|
|
|
|
# All executables in PLUGINSDIR will simply be executed and their
|
|
# ouput appended to the output of the agent. Plugins define their own
|
|
@@ -109,7 +109,7 @@ function run_cached() {
|
|
|
|
# Cache file outdated and new job not yet running? Start it
|
|
if [ -z "$USE_CACHEFILE" -a ! -e "$CACHEFILE.new" ] ; then
|
|
- echo "$CMDLINE" | daemon /usr/local/bin/bash -o noclobber > $CACHEFILE.new && mv $CACHEFILE.new $CACHEFILE || rm -f $CACHEFILE $CACHEFILE.new &
|
|
+ echo "$CMDLINE" | daemon %%BASH%% -o noclobber > $CACHEFILE.new && mv $CACHEFILE.new $CACHEFILE || rm -f $CACHEFILE $CACHEFILE.new &
|
|
fi
|
|
}
|
|
|