From 957984f9dc9d4ace34793d930afdeca1f1a2c5e7 Mon Sep 17 00:00:00 2001 From: Vytautas Mickus Date: Fri, 16 Oct 2020 01:37:36 +0200 Subject: [PATCH] Postgres: Don't try clearing garbage or double-configuring --- src/pgsql/bin/postgres/entrypoint.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/pgsql/bin/postgres/entrypoint.sh b/src/pgsql/bin/postgres/entrypoint.sh index 99b7fe1f..917350fb 100755 --- a/src/pgsql/bin/postgres/entrypoint.sh +++ b/src/pgsql/bin/postgres/entrypoint.sh @@ -9,14 +9,6 @@ echo "*:$REPLICATION_PRIMARY_PORT:*:$REPLICATION_USER:$REPLICATION_PASSWORD" >> chmod 0600 $PG_HOME/.pgpass chown postgres:postgres $PG_HOME/.pgpass -if ! has_pg_cluster; then - echo ">>> Cleaning data folder which might have some garbage..." - rm -rf $PGDATA/* -else - postgres_configure -fi - - export CURRENT_REPLICATION_PRIMARY_HOST="" CURRENT_MASTER=`cluster_master || echo ''` echo ">>> Auto-detected master name: '$CURRENT_MASTER'"