garage_ynh/conf/umount_disk.sh

5 lines
76 B
Bash
Raw Normal View History

#!/bin/bash
nbd=$1
umount /dev/nbd$nbd
qemu-nbd --disconnect /dev/nbd$nbd