diff options
-rw-r--r-- | bin/ncp/CONFIG/nc-datadir.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ncp/CONFIG/nc-datadir.sh b/bin/ncp/CONFIG/nc-datadir.sh index 11ede598..f733cabe 100644 --- a/bin/ncp/CONFIG/nc-datadir.sh +++ b/bin/ncp/CONFIG/nc-datadir.sh @@ -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" ]] && { |