garage_ynh/conf/umount_disk.sh
2022-11-29 16:02:53 +01:00

8 lines
131 B
Bash
Executable File

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