diff --git a/000-configure-stats.sh b/000-configure-stats.sh deleted file mode 100755 index 1a3d5f5..0000000 --- a/000-configure-stats.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env bash - -# make bash behave -set -euo pipefail -IFS=$'\n\t' - -if [ -n "${DISABLE_STATS_COLLECTION+set}" ]; then - echo "Anonymous statistics collection disabled" >&2 - - echo 'citus.enable_statistics_collection=off' >> "${PGDATA}/postgresql.conf" - pg_ctl -D "${PGDATA}" reload -s -fi diff --git a/Dockerfile b/Dockerfile index 1122df0..fdcf2a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,7 @@ RUN apt-get update \ RUN echo "shared_preload_libraries='citus'" >> /usr/share/postgresql/postgresql.conf.sample # add scripts to run after initdb -COPY 000-configure-stats.sh 001-create-citus-extension.sql /docker-entrypoint-initdb.d/ +COPY 001-create-citus-extension.sql /docker-entrypoint-initdb.d/ # add health check script COPY pg_healthcheck wait-for-manager.sh / diff --git a/Dockerfile-alpine b/Dockerfile-alpine index cee2509..f222cea 100644 --- a/Dockerfile-alpine +++ b/Dockerfile-alpine @@ -33,7 +33,7 @@ RUN apk add --no-cache \ RUN echo "shared_preload_libraries='citus'" >> /usr/local/share/postgresql/postgresql.conf.sample # add scripts to run after initdb -COPY 000-configure-stats.sh 001-create-citus-extension.sql /docker-entrypoint-initdb.d/ +COPY 001-create-citus-extension.sql /docker-entrypoint-initdb.d/ # add health check script COPY pg_healthcheck /