diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-04-10 03:46:02 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-04-30 04:57:40 +0300 |
commit | 02efd614fd562f8e540a68a0c5a4dc1fe1eaf78f (patch) | |
tree | 37751c9b98cbce161d9fb5005df4e979d9e1fede | |
parent | 4a0885c0a6bb623f8662b75bad83395fd4280efe (diff) |
nc-restore: check btrfs commandv1.11.3
-rw-r--r-- | bin/ncp/BACKUPS/nc-restore.sh | 2 | ||||
-rwxr-xr-x | update.sh | 1 |
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 } @@ -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 |