Skip to content

Commit

Permalink
nc-datadir: fix
Browse files Browse the repository at this point in the history
Signed-off-by: nachoparker <nacho@ownyourbits.com>
  • Loading branch information
nachoparker committed Sep 13, 2019
1 parent 789f0b5 commit dbf129f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/ncp/CONFIG/nc-datadir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ configure()
echo "moving data directory from $SRCDIR to $DATADIR..."

# resolve symlinks and use the real path
mkdir -p "$DATADIR"
mkdir "$DATADIR"
DATADIR=$(cd "$DATADIR" && pwd -P)
rmdir "$DATADIR"

# use subvolumes, if BTRFS
[[ "$( stat -fc%T "$BASEDIR" )" == "btrfs" ]] && {
Expand Down

0 comments on commit dbf129f

Please sign in to comment.