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:
authornachoparker <nacho@ownyourbits.com>2019-09-13 22:51:39 +0300
committernachoparker <nacho@ownyourbits.com>2019-09-13 22:51:39 +0300
commitdbf129fb7fe11a02969f2b7658460af0b1d82a51 (patch)
tree71d395b9d8f0790c217510d6fbc24a97cf6f84fa
parent789f0b58d760dcca0f79c786c41821885a0384aa (diff)
nc-datadir: fixv1.16.6
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-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" ]] && {