Correction : vm_hosted : cd / sauf pour help.
authorJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Tue, 16 Apr 2013 14:06:54 +0000 (16:06 +0200)
committerJulien Moutinho <julm+heureux-cyclage@autogeree.net>
Tue, 16 Apr 2013 14:07:04 +0000 (16:07 +0200)
vm_hosted

index 3ac6ced..9d6710d 100755 (executable)
--- a/vm_hosted
+++ b/vm_hosted
@@ -8,7 +8,6 @@ tool=${tool%/*}
 . "$tool"/lib/rule.sh
 . "$tool"/etc/vm.sh
 export TRACE=1
-cd /
 
 rule_help () { # SYNTAX: [--hidden]
        local hidden; [ ${1:+set} ] || hidden=set
@@ -886,6 +885,7 @@ case $rule in
  (help);;
  (*)
        assert 'test "$(hostname --fqdn)" = "$vm_fqdn"' vm_fqdn
+       cd /
        ;;
  esac
 rule $rule "$@"