Ajout : lib/log.sh .
[lhc/ateliers.git] / vm_host
diff --git a/vm_host b/vm_host
index d5d9277..0a2649d 100755 (executable)
--- a/vm_host
+++ b/vm_host
@@ -358,6 +358,7 @@ rule_debian_install () {
                 dnsutils \
                 dropbear \
                 etckeeper \
+                git-core \
                 gnupg \
                 hashalot \
                 htop \
@@ -436,8 +437,9 @@ ${1+shift}
 case $rule in
  (help);;
  (*)
-       test "$(hostname --fqdn)" = "$vm_host"
-       set "${TRACE:+-x}"
+       test "$(hostname --fqdn)" = "$vm_host" ||
+       error 1 "mauvaise machine"
+       ${TRACE:+set -x}
        ;;
  esac
 rule_$rule "$@"