mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update entrypoint.sh (#44699)
create xml with user settings if CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT is set
This commit is contained in:
parent
4c80f597c9
commit
77e3b9baa5
@ -80,7 +80,7 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# if clickhouse user is defined - create it (user "default" already exists out of box)
|
# if clickhouse user is defined - create it (user "default" already exists out of box)
|
||||||
if [ -n "$CLICKHOUSE_USER" ] && [ "$CLICKHOUSE_USER" != "default" ] || [ -n "$CLICKHOUSE_PASSWORD" ]; then
|
if [ -n "$CLICKHOUSE_USER" ] && [ "$CLICKHOUSE_USER" != "default" ] || [ -n "$CLICKHOUSE_PASSWORD" ] || [ "$CLICKHOUSE_ACCESS_MANAGEMENT" != "0" ]; then
|
||||||
echo "$0: create new user '$CLICKHOUSE_USER' instead 'default'"
|
echo "$0: create new user '$CLICKHOUSE_USER' instead 'default'"
|
||||||
cat <<EOT > /etc/clickhouse-server/users.d/default-user.xml
|
cat <<EOT > /etc/clickhouse-server/users.d/default-user.xml
|
||||||
<clickhouse>
|
<clickhouse>
|
||||||
|
Loading…
Reference in New Issue
Block a user