mirror of
https://github.com/YunoHost-Apps/garage_ynh.git
synced 2024-09-03 18:36:32 +02:00
Update conf/umount_disk.sh: same as previous commit
This commit is contained in:
parent
d1951c1435
commit
50002636a1
1 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# If we're inside a container
|
||||
if systemd-detect-virt -c -q
|
||||
# If we're NOT inside a container
|
||||
if ! systemd-detect-virt -c -q
|
||||
then
|
||||
data_dir=__DATA_DIR__
|
||||
nbd=$(cat $data_dir/nbd_index)
|
||||
|
|
Loading…
Add table
Reference in a new issue