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

12 lines
305 B
Bash
Executable File

#!/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/