cloudflare/ClickHouse
Publicmirrored fromhttps://github.com/cloudflare/ClickHouse
debian/clickhouse-server.config
16lines · modecode
| 1 | #!/bin/sh -e |
| 2 | |
| 3 | test -f /usr/share/debconf/confmodule && . /usr/share/debconf/confmodule |
| 4 | |
| 5 | db_fget clickhouse-server/default-password seen || true |
| 6 | password_seen="$RET" |
| 7 | |
| 8 | if [ "$1" = "reconfigure" ]; then |
| 9 | password_seen=false |
| 10 | fi |
| 11 | |
| 12 | if [ "$password_seen" != "true" ]; then |
| 13 | db_input high clickhouse-server/default-password || true |
| 14 | db_go || true |
| 15 | fi |
| 16 | db_go || true |