2017-09-05 18:53:28 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2017-10-12 19:54:56 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
. $CURDIR/../shell_config.sh
|
2017-09-23 23:32:26 +00:00
|
|
|
|
2017-12-15 19:34:19 +00:00
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
. $CURDIR/../shell_config.sh
|
|
|
|
|
2017-10-12 19:54:56 +00:00
|
|
|
( ${CLICKHOUSE_CURL} -s --head "${CLICKHOUSE_URL}?query=SELECT%201";
|
|
|
|
${CLICKHOUSE_CURL} -s --head "${CLICKHOUSE_URL}?query=select+*+from+system.numbers+limit+1000000" ) | grep -v "Date:"
|
2017-10-03 18:31:32 +00:00
|
|
|
|
2017-10-12 19:54:56 +00:00
|
|
|
if [[ `${CLICKHOUSE_CURL} -sS -X POST -I "${CLICKHOUSE_URL}?query=SELECT+1" | grep -c '411 Length Required'` -ne 1 ]]; then
|
2017-09-25 19:45:15 +00:00
|
|
|
echo FAIL
|
|
|
|
fi
|