diff options
author | nachoparker <nacho@ownyourbits.com> | 2019-09-13 22:51:39 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2019-09-13 22:51:39 +0300 |
commit | dbf129fb7fe11a02969f2b7658460af0b1d82a51 (patch) | |
tree | 71d395b9d8f0790c217510d6fbc24a97cf6f84fa | |
parent | 789f0b58d760dcca0f79c786c41821885a0384aa (diff) |
nc-datadir: fixv1.16.6
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-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" ]] && { |