garage_ynh/conf/umount_disk.sh
2022-10-06 09:46:45 +02:00

7 lines
142 B
Bash
Executable file

#!/bin/bash
if [ "$VIRTUALISATION" = "true" ]
then
nbd=__NBD_INDEX__
umount /dev/nbd$nbd
qemu-nbd --disconnect /dev/nbd$nbd
fi