diff options
author | nachoparker <nacho@ownyourbits.com> | 2017-11-20 12:21:01 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2017-11-20 12:21:09 +0300 |
commit | 2c884b70089ee4e4d2fe20461dd4786ea11440f2 (patch) | |
tree | 49731238a1971a34c9ecc761abd44474fedaf8e2 | |
parent | dd1d6e62e0d32ec4af35a30fce0244b526b999c2 (diff) |
nc-datadir: dont create dir if not existsv0.37.2
-rw-r--r-- | etc/nextcloudpi-config.d/nc-datadir.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/nextcloudpi-config.d/nc-datadir.sh b/etc/nextcloudpi-config.d/nc-datadir.sh index 7283f7ae..dd678e16 100644 --- a/etc/nextcloudpi-config.d/nc-datadir.sh +++ b/etc/nextcloudpi-config.d/nc-datadir.sh @@ -50,7 +50,8 @@ configure() } local BASEDIR=$( dirname "$DATADIR_" ) - mkdir -p "$BASEDIR" + + [ -d "$BASEDIR" ] || { echo "$BASEDIR does not exist"; return 1; } grep -q ext <( stat -fc%T "$BASEDIR" ) || { echo -e "Only ext filesystems can hold the data directory"; return 1; } |