From bbcadd2311f55f2c26c06dc38819623fbfb7d4c1 Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Tue, 14 Feb 2023 11:57:05 +0100 Subject: [PATCH] Fix the script --- docker/server/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/server/entrypoint.sh b/docker/server/entrypoint.sh index 538934f07fa..9dc2509c22d 100755 --- a/docker/server/entrypoint.sh +++ b/docker/server/entrypoint.sh @@ -178,7 +178,7 @@ if [[ $# -lt 1 ]] || [[ "$1" == "--"* ]]; then if [[ "${CLICKHOUSE_DOCKER_RESTART_ON_EXIT:-0}" -eq "1" ]]; then while true; do # This runs the server as a child process of the shell script: - /usr/bin/clickhouse su "${USER}:${GROUP}" /usr/bin/clickhouse-server --config-file="$CLICKHOUSE_CONFIG" "$@" + /usr/bin/clickhouse su "${USER}:${GROUP}" /usr/bin/clickhouse-server --config-file="$CLICKHOUSE_CONFIG" "$@" && break ||: echo >&2 'ClickHouse Server exited, and the environment variable CLICKHOUSE_DOCKER_RESTART_ON_EXIT is set to 1. Restarting the server.' done else