Skip to content

Commit dbf129f

Browse files
committed
nc-datadir: fix
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 789f0b5 commit dbf129f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/ncp/CONFIG/nc-datadir.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ configure()
7070
echo "moving data directory from $SRCDIR to $DATADIR..."
7171

7272
# resolve symlinks and use the real path
73-
mkdir -p "$DATADIR"
73+
mkdir "$DATADIR"
7474
DATADIR=$(cd "$DATADIR" && pwd -P)
75+
rmdir "$DATADIR"
7576

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

0 commit comments

Comments
 (0)