garage_ynh/conf/umount_disk.sh

5 lines
76 B
Bash
Executable File

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