Correctly forward env

This commit is contained in:
alesapin 2020-12-21 23:09:32 +03:00
parent 2222122f9f
commit 8bbb678758

View File

@ -18,7 +18,7 @@ if [ "$NUM_TRIES" -gt "1" ]; then
export THREAD_FUZZER_SLEEP_PROBABILITY=0.1
export THREAD_FUZZER_SLEEP_TIME_US=100000
# simpliest way to forward env variables to server
sudo -u clickhouse /usr/bin/clickhouse-server --config /etc/clickhouse-server/config.xml --daemon
sudo -E -u clickhouse /usr/bin/clickhouse-server --config /etc/clickhouse-server/config.xml --daemon
sleep 5
else
service clickhouse-server start && sleep 5