We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a0885c commit 02efd61Copy full SHA for 02efd61
bin/ncp/BACKUPS/nc-restore.sh
@@ -110,7 +110,7 @@ if [[ $( ls "$TMPDIR" | wc -l ) -eq $NUMFILES ]]; then
110
echo "restore datadir to $DATADIR..."
111
112
mkdir -p "$DATADIR"
113
- [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && {
+ [[ "$( stat -fc%T "$DATADIR" )" == "btrfs" ]] && which btrfs &>/dev/null && {
114
rmdir "$DATADIR" || exit 1
115
btrfs subvolume create "$DATADIR" || exit 1
116
}
update.sh
@@ -170,6 +170,7 @@ EOF
170
171
# update nc-backup
172
install_app nc-backup
173
+ install_app nc-restore
174
175
# create UPDATES section
176
updates_dir=/usr/local/bin/ncp/UPDATES
0 commit comments