Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ncp/CONFIG/nc-datadir.sh3
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" ]] && {