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
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
parent4a0885c0a6bb623f8662b75bad83395fd4280efe (diff)
nc-restore: check btrfs commandv1.11.3
-rw-r--r--bin/ncp/BACKUPS/nc-restore.sh2
-rwxr-xr-xupdate.sh1
2 files changed, 2 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
}
diff --git a/update.sh b/update.sh
index 771dabf4..3ef4bf59 100755
--- a/update.sh
+++ b/update.sh
@@ -170,6 +170,7 @@ EOF
# update nc-backup
install_app nc-backup
+ install_app nc-restore
# create UPDATES section
updates_dir=/usr/local/bin/ncp/UPDATES