Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / host / chroot
index 3ea00c4..1367155 100755 (executable)
@@ -15,12 +15,12 @@ mountpoint -q /mnt/$local_fqdn/sys ||
 sudo mount -t sysfs sys /mnt/$local_fqdn/sys
 mountpoint -q /mnt/$local_fqdn/dev ||
 sudo mount --bind /dev /mnt/$local_fqdn/dev
-if test -d /mnt/$local_fqdn/root/src/vm/.git
+if test -d /mnt/$local_fqdn/root/src/$local_hostname/.git
  then
-       mountpoint -q /mnt/$local_fqdn/root/src/vm ||
-       sudo mount --bind "$tool" /mnt/$local_fqdn/root/src/vm
+       mountpoint -q /mnt/$local_fqdn/root/src/$local_hostname ||
+       sudo mount --bind "$tool" /mnt/$local_fqdn/root/src/$local_hostname
  else
-       sudo rsync -a "$tool"/ /mnt/$local_fqdn/root/src/vm
+       sudo rsync -a "$tool"/ /mnt/$local_fqdn/root/src/$local_hostname
  fi
 sudo chroot /mnt/$local_fqdn /bin/bash || true
 "$tool"/host/chroot-clean