0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-28 00:46:45 +01:00
posthog/docker/clickhouse/docker-entrypoint-initdb.d/init-db.sh

12 lines
305 B
Bash
Raw Normal View History

#!/bin/bash
set -e
apt-get update
apt-get -y install python3.9
# Check if /usr/bin/python3 already exists and if it points to python3.9
if [[ $(readlink /usr/bin/python3) != "/usr/bin/python3.9" ]]; then
ln -sf /usr/bin/python3.9 /usr/bin/python3
fi
cp -r /idl/* /var/lib/clickhouse/format_schemas/