mirror of
https://github.com/nextcloud/nextcloudpi.git
synced 2026-01-10 15:12:01 -03:30
nc-restore: check btrfs command
This commit is contained in:
parent
4a0885c0a6
commit
02efd614fd
@ -110,7 +110,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then
|
||||
echo "restore datadir to $DATADIR..."
|
||||
|
||||
mkdir -p "$DATADIR"
|
||||
[[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && {
|
||||
[[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && {
|
||||
rmdir "$DATADIR" || exit 1
|
||||
btrfs subvolume create "$DATADIR" || exit 1
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user