Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin/ncp
diff options
context:
space:
mode:
authornachoparker <nacho@ownyourbits.com>2019-04-10 03:46:02 +0300
committernachoparker <nacho@ownyourbits.com>2019-04-30 04:57:40 +0300
commit02efd614fd562f8e540a68a0c5a4dc1fe1eaf78f (patch)
tree37751c9b98cbce161d9fb5005df4e979d9e1fede /bin/ncp
parent4a0885c0a6bb623f8662b75bad83395fd4280efe (diff)
nc-restore: check btrfs commandv1.11.3
Diffstat (limited to 'bin/ncp')
-rw-r--r--bin/ncp/BACKUPS/nc-restore.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ncp/BACKUPS/nc-restore.sh b/bin/ncp/BACKUPS/nc-restore.sh
index eee58c18..f94d6478 100644
--- a/bin/ncp/BACKUPS/nc-restore.sh
+++ b/bin/ncp/BACKUPS/nc-restore.sh
@@ -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
}