Skip to content

Commit

Permalink
Don't try to initialize the database on replication slaves
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Nov 29, 2019
1 parent b651209 commit 9cde78e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker-entrypoint-initdb.d/000_install_timescaledb.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

# Don't run on slaves
if [ "${POSTGRESQL_REPLICATION_MODE:-master}" != "master" ]; then
exit 0
fi

# Checks to support bitnami image with same scripts so they stay in sync
if [ ! -z "${BITNAMI_IMAGE_VERSION:-}" ]; then
if [ -z "${POSTGRES_USER:-}" ]; then
Expand Down

0 comments on commit 9cde78e

Please sign in to comment.