Skip to content

Commit

Permalink
Postgres: Don't try clearing garbage or double-configuring
Browse files Browse the repository at this point in the history
  • Loading branch information
Eximius committed Oct 16, 2020
1 parent f623c78 commit 093d700
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/pgsql/bin/postgres/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 093d700

Please sign in to comment.