Correction : {host,local,remote}/ : duplicity + MySQL.
[lhc/ateliers.git] / host / part-lvm-umount
1 #!/bin/sh -eu
2 tool=$(readlink -e "${0%/*}/..")
3 . "$tool"/host/lib.sh
4
5 case $local_use_lvm in
6 (yes)
7 "$tool"/host/part-root-umount
8 "$tool"/host/part-var-umount
9 "$tool"/host/part-home-umount
10 ! sudo vgs | grep -q "^ $local_lvm_vg " ||
11 sudo vgchange -a n $local_lvm_vg
12 ;;
13 (*) exit 1;;
14 esac