Module: check_mk
Branch: master
Commit: 3094592d2822d4ffd3a91eb817b9d267261af863
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3094592d2822d4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Aug 20 09:38:47 2014 +0200
check_mk_agent.solaris: update run_cached to current Linux version
---
agents/check_mk_agent.solaris | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index fadd2c6..c61d226 100644
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -86,7 +86,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 "set -o noclobber ; exec > $CACHEFILE.new || exit 1 ; $CMDLINE
&& mv $CACHEFILE.new $CACHEFILE || rm -f $CACHEFILE $CACHEFILE.new" | nohup
bash 2>/dev/null &
+ echo "set -o noclobber ; exec > \"$CACHEFILE.new\" || exit 1 ;
$CMDLINE && mv \"$CACHEFILE.new\" \"$CACHEFILE\" || rm -f
\"$CACHEFILE\" \"$CACHEFILE.new\"" | nohup bash 2>/dev/null
&
fi
}