1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/garage_ynh.git synced 2024-09-03 18:36:32 +02:00
This commit is contained in:
oiseauroch 2022-11-30 17:51:55 +01:00
parent 81776945bb
commit 928edeface

View file

@ -13,7 +13,8 @@ then
qemu-nbd --connect /dev/nbd$i $datadir/garage_data.qcow2
if [[ "$format" = "true" ]]
then
mkfs.ext4 /dev/nbd$i > /dev/null
echo "formatting /dev/nbd$i"
mkfs.ext4 /dev/nbd$i
fi
mkdir -p $datadir/data
mount /dev/nbd$i $datadir/data/