Module: check_mk
Branch: master
Commit: 77bd21d77c9d5e6c18646fe17224d674cb397652
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77bd21d77c9d5e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 26 09:49:38 2018 +0100
windows agent: Only care about ssh setup when running integrationtest
Change-Id: I26e51b758794c30fc1f706164c3456ba3c3c57b9
---
agents/windows/make-agent | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/windows/make-agent b/agents/windows/make-agent
index 1c744ee..5b28a31 100755
--- a/agents/windows/make-agent
+++ b/agents/windows/make-agent
@@ -87,7 +87,7 @@ echo "CHROOT_PATH is $CHROOT_PATH"
fi
# Copy windows test-specific ssh key pair from ~$SUDO_USER/.ssh to chroot.
- if [[ ! -f "$CHROOT_PATH/home/$SUDO_USER/.ssh/id_rsa" ]] ; then
+ if [[ "$targets" == *integrationtest* && ! -f
"$CHROOT_PATH/home/$SUDO_USER/.ssh/id_rsa" ]] ; then
$script_dir/setup-ssh
fi
) 200>/var/lock/cmk-make-agent_${CHROOT_PATH//\//-}.lock