Skip to content

Commit

Permalink
nc-datadir: dont create dir if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nachoparker committed Nov 20, 2017
1 parent dd1d6e6 commit 2c884b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/nextcloudpi-config.d/nc-datadir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down

0 comments on commit 2c884b7

Please sign in to comment.