garage_ynh/conf/umount_disk.sh

8 lines
142 B
Bash
Raw Permalink Normal View History

#!/bin/bash
2022-10-06 07:46:45 +00:00
if [ "$VIRTUALISATION" = "true" ]
then
nbd=__NBD_INDEX__
umount /dev/nbd$nbd
qemu-nbd --disconnect /dev/nbd$nbd
fi