mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Merge pull request #33963 from pkit/fix_chown_squash
docker: fix root squashed data dirs
This commit is contained in:
commit
662444fe13
@ -65,7 +65,12 @@ do
|
|||||||
# check if variable not empty
|
# check if variable not empty
|
||||||
[ -z "$dir" ] && continue
|
[ -z "$dir" ] && continue
|
||||||
# ensure directories exist
|
# ensure directories exist
|
||||||
if ! mkdir -p "$dir"; then
|
if [ "$DO_CHOWN" = "1" ]; then
|
||||||
|
mkdir="mkdir"
|
||||||
|
else
|
||||||
|
mkdir="$gosu mkdir"
|
||||||
|
fi
|
||||||
|
if ! $mkdir -p "$dir"; then
|
||||||
echo "Couldn't create necessary directory: $dir"
|
echo "Couldn't create necessary directory: $dir"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user