Ajout : vm_hosted : rule_gitolite_configure .
[lhc/ateliers.git] / lib / ssh
diff --git a/lib/ssh b/lib/ssh
index e39d9b1..93ecbcf 100755 (executable)
--- a/lib/ssh
+++ b/lib/ssh
@@ -1,8 +1,8 @@
 #!/bin/sh
 set -e -f ${DRY_RUN:+-n} -u
-tool=${0%/*}
+tool=${0%/*}/..
 ssh \
  -o StrictHostKeyChecking=yes \
- -o UserKnownHostsFile=etc/openssh/known_hosts \
+ -o UserKnownHostsFile="$tool"/etc/openssh/known_hosts \
  -o HashKnownHosts=no \
  "$@"