Skip to content

Commit

Permalink
nc-restore: check btrfs command
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Apr 30, 2019
1 parent 4a0885c commit 02efd61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/ncp/BACKUPS/nc-restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
1 change: 1 addition & 0 deletions update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 02efd61

Please sign in to comment.