Module: check_mk
Branch: master
Commit: 9679ce1b6a52a01bc8bcdd2bedd220a0ace6507e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9679ce1b6a52a0…
Author: Jukka Aro <ja(a)mathias-kettner.de>
Date: Mon Mar 19 15:40:13 2018 +0100
Win-agent: cope with a weird Linux desktop bug
For some weird reason, saving the target dir for 'cd' in an
intermediate variable is necessary to prevent some desktop env's (at
least Cinnamon) from opening a fresh file manager window when run
in chroot! Please do not ask why...
---
agents/windows/build-agent | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/agents/windows/build-agent b/agents/windows/build-agent
index 0a04c7c..abd8437 100755
--- a/agents/windows/build-agent
+++ b/agents/windows/build-agent
@@ -18,8 +18,11 @@ set -e
. /$CHROOT_BUILD_DIR/agents/windows/build.sh
parse-args "$@"
-
-cd /$CHROOT_BUILD_DIR/agents/windows
+# For some weird reason, saving the target dir for 'cd' in an intermediate
+# variable is necessary to prevent some desktop env's (at least Cinnamon)
+# from opening a fresh file manager window! Please do not ask why...
+windowsdir="/$CHROOT_BUILD_DIR/agents/windows"
+cd "$windowsdir"
autoreconf --install