Ajout : lib/log.sh .
[lhc/ateliers.git] / vm_remote
index 987be13..946706a 100755 (executable)
--- a/vm_remote
+++ b/vm_remote
@@ -75,8 +75,9 @@ ${1+shift}
 case $rule in
  (help);;
  (*)
-       test ! "$(hostname --fqdn)" = "$vm_fqdn"
-       test ! "$(hostname --fqdn)" = "$vm_host"
+       test ! "$(hostname --fqdn)" = "$vm_fqdn" &&
+       test ! "$(hostname --fqdn)" = "$vm_host" ||
+       error 1 "mauvaise machine"
        ${TRACE:+set -x}
        ;;
  esac