X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=host%2Fchroot;fp=host%2Fchroot;h=1367155ab87641d463e1ec4aa1805561c9b01936;hp=3ea00c47fd7c0e6e09d350c64ccd1eadec24b789;hb=a11ad78672a096632b15a660509d7dd5f7c5eae5;hpb=0d705d8e2a919ee40866307aa3e18b1a5c4e7583 diff --git a/host/chroot b/host/chroot index 3ea00c4..1367155 100755 --- a/host/chroot +++ b/host/chroot @@ -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