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:
-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